[wp-trac] [WordPress Trac] #12885: LiveJournal importer uses GMT date/time as local date/time

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 7 02:07:26 UTC 2010


#12885: LiveJournal importer uses GMT date/time as local date/time
--------------------------+-------------------------------------------------
 Reporter:  kurtmckee     |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Import        |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 The LiveJournal importer takes a comment's date/timestamp, which is in
 GMT, and inserts it into the database as the comment's local
 date/timestamp. In my timezone (U.S. Central, DST), a comment posted at
 12:00pm local time (5:00pm GMT) will be imported to the database as having
 been posted at 5:00pm local time (10:00pm GMT).

 I've attached a patch that I've successfully tested on Wordpress 2.9.2,
 and it appears to be easily ported to trunk. One caveat: it appears that
 there are two timezone settings in the Wordpress database (timezone_string
 and gmt_offset), but as my database has no value for gmt_offset, I don't
 know if I need to account for that, nor can I test that.

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


More information about the wp-trac mailing list