[wp-trac] [WordPress Trac] #20973: date_i18n() produces invalid output for shorthand formats

WordPress Trac noreply at wordpress.org
Fri Oct 11 15:28:21 UTC 2013


#20973: date_i18n() produces invalid output for shorthand formats
--------------------------+------------------------------
 Reporter:  Rarst         |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by Rarst):

 Patch does not seem to fix the issue for me  (`var_dump( date_i18n( 'c' )
 );` still produces invalid result). Could you elaborate a bit on it? I
 have trouble following what are you trying to do with time zone.

 As per my description of the issue I think this is the problem with WP not
 recognizing shorthand time format, rather than with applying time zone
 (which works fine for other formats).

--
Ticket URL: <http://core.trac.wordpress.org/ticket/20973#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list