i delete the vendor folder and again install the composer but still have erorr .
Laravel version is 8.75
php version is 8.0.25
could someone help ?
thanks in advance
<?php
use DateTime;
use DateTimeZone;
**// Create a new DateTime object with a specific timezone**
$date = new DateTime();
$date->setTimezone(new DateTimeZone('America/New_York'));
// Retrieve the current date and time
$currentDateTime = $date->format('Y-m-d H:i:s');
dd($currentDateTime);
?>
2
Answers
Try this..
Just install version 2.1.0 of lcobucci/clock
You can install it via composer