[wp-trac] [WordPress Trac] #43493: with date format 'c', the_time() and get_the_time() print wrong time zone offset

WordPress Trac noreply at wordpress.org
Sat Mar 10 18:43:44 UTC 2018


#43493: with date format 'c', the_time() and get_the_time() print wrong time zone
offset
---------------------------+------------------------------
 Reporter:  paulschreiber  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Date/Time      |     Version:  trunk
 Severity:  normal         |  Resolution:  duplicate
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by Rarst):

 * status:  new => closed
 * resolution:   => duplicate


Comment:

 Duplicate of #20973.

 Yeah, this is duplicate. All of these come down to `date_i18n()` call down
 the line, which is unable to process shorthand formats.

 Forcing it to GMT doesn't as much make it correct as makes brokeness less
 relevant.

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


More information about the wp-trac mailing list