[wp-trac] [WordPress Trac] #54132: get_calendar functions depends on gmdate instead of date

WordPress Trac noreply at wordpress.org
Thu May 26 12:29:46 UTC 2022


#54132: get_calendar functions depends on gmdate instead of date
--------------------------+------------------------------
 Reporter:  voregnev      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by voregnev):

 /wp-includes/general-template.php
 @2271
 {{{#!php
 <?php
 -   $last_day  = gmdate( 't', $unixmonth );
 +   $last_day  = date( 't', $unixmonth );
 }}}

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


More information about the wp-trac mailing list