[wp-trac] [WordPress Trac] #20973: date_i18n() produces invalid output for shorthand formats
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 15 13:50:38 UTC 2012
#20973: date_i18n() produces invalid output for shorthand formats
--------------------------+------------------------------
Reporter: Rarst | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 3.4
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by Rarst):
Actually scratch `time()` from example for more accurate:
{{{
var_dump( date_i18n( 'Y-m-d\TH:i:sP' ) );
var_dump( date_i18n( DATE_W3C ) );
var_dump( date_i18n( 'c' ) ); // broken time zone!
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20973#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list