[wp-trac] [WordPress Trac] #51761: Bug in get_calendar() (was: Inconsistent displayed date in get_calendar())

WordPress Trac noreply at wordpress.org
Thu Nov 12 11:00:11 UTC 2020


#51761: Bug in get_calendar()
-----------------------------------------+------------------------------
 Reporter:  labbit                       |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Date/Time                    |     Version:  trunk
 Severity:  normal                       |  Resolution:
 Keywords:  needs-patch has-screenshots  |     Focuses:
-----------------------------------------+------------------------------

Comment (by Rarst):

 Please check that your environment isn't using
 `date_default_timezone_set()`. WordPress core is historically hardcoded to
 operate in UTC on PHP level so there is no discrepancy with "local" time.

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


More information about the wp-trac mailing list