[wp-trac] [WordPress Trac] #51761: Bug in get_calendar()

WordPress Trac noreply at wordpress.org
Thu Nov 12 10:52:19 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        |   Keywords:  needs-patch has-screenshots
  Focuses:                |
--------------------------+-----------------------------------------
 This bug was introduced with this commit:
 https://github.com/WordPress/wordpress-
 develop/commit/10855438eaca4da1aa24616fdc5f90f5745a45e4#diff-
 1c6b59f268c3016f96c2f2ac62c15a4990045a68fd56aa2c36ef8e1853362bcb

 By using gmdate with strtime or mktime you are mixing local times with gm
 times. get_calendar() has a bug now, because displayed day is different
 from the day used in queries. For example you display November 1, but
 using gmtime it becomes Oct 31 for all countries after Greenwich line

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


More information about the wp-trac mailing list