[wp-trac] [WordPress Trac] #9586: Autosave problem when server is not using GMT time

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 19 14:58:26 GMT 2009


#9586: Autosave problem when server is not using GMT time
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  azaozz
     Type:  defect (bug)       |      Status:  new   
 Priority:  normal             |   Milestone:  2.8   
Component:  JavaScript         |     Version:  2.8   
 Severity:  normal             |    Keywords:        
-------------------------------+--------------------------------------------
 The autosave uses the following as $now and $then:

 {{{
 $now = time();
 $then = strtotime($post->post_date_gmt . ' +0000');
 }}}

 So, the second is GMT but not necessarily the first. Shouldn't it be
 strtotime(gmdate("Y-m-d H:i:s")) instead?

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


More information about the wp-trac mailing list