[wp-trac] [WordPress Trac] #11927: mysql2date translate parameter doesn't work

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 17 00:27:54 UTC 2010

#11927: mysql2date translate parameter doesn't work
 Reporter:  mattifesto    |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  2.9.1     
 Severity:  normal        |    Keywords:            
 The translate parameter of mysql2date function has no effect on the output
 making it difficult to store dates in mysql as gmt and then translate them
 back to the blog's set time zone.

 I'm including a test plugin file that when enabled will insert the
 following lines at the beginning of the_content showing that the translate
 parameter has no effect. If the translate parameter is working, the 2
 second lines should show different times.

 Current MySQL GMT date/time: 2010-01-17 00:24:36

 mysql2date translate=false: 00:24:36

 mysql2date translate=true: 00:24:36


 I tested this on 2.9.1 and 2.7.1, on my local machine and on a 3rd party
 hosted internet site.

Ticket URL: <http://core.trac.wordpress.org/ticket/11927>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list