[wp-trac] [WordPress Trac] #48976: Current_time

WordPress Trac noreply at wordpress.org
Mon Dec 16 12:22:58 UTC 2019


#48976: Current_time
-------------------------------+------------------------------
 Reporter:  autotutorial       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Date/Time          |     Version:  5.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by autotutorial):

 var_dump(new DateTime( 'now', 'Europe/Berlin'), new DateTime( 'now', new
 DateTimeZone('Europe/Berlin')));
 <br />
 <b>Fatal error</b>: Uncaught TypeError: DateTime::__construct() expects
 parameter 2 to be DateTimeZone, string given in /home/user/prova.php:234
 Stack trace:
 #0 /home/user/prova.php(234): DateTime->__construct('now',
 'Europe/Berlin')
 #1 {main}
 thrown in <b>/home/user/prova.php</b> on line <b>234</b><br />

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48976#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list