skip to Main Content

after updating composer i’m getting this error.

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 advanceenter image description here

2

Answers


  1. Try this..

    <?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);
    ?>
    
    Login or Signup to reply.
  2. Just install version 2.1.0 of lcobucci/clock

    You can install it via composer

    composer require lcobucci/clock:2.1.0
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search