[wp-trac] [WordPress Trac] #8750: 'Draft Saved' current_time not reflecting timezone setting in the edit area

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 29 20:37:44 GMT 2008


#8750: 'Draft Saved' current_time not reflecting timezone setting in the edit area
--------------------------+-------------------------------------------------
 Reporter:  designsimply  |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.7.1    
Component:  General       |     Version:           
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 If you open a draft post for editing, you will see the following string
 below the edit textarea after autosave:
 Draft Saved at 7:45:11 pm. Last edited by Sheri on December 29, 2008 at
 2:43 pm

 The 'draft saved' time reflects the server time and does not reflect the
 timezone setting from the WordPress options, while the 'last edited' time
 does reflect the timezone set in the WordPress options. It will be
 difficult to see this if you are using a server with a timezone set to
 your current timezone (i.e. localhost). To test, set your server to UTC or
 a timezone other than the one in the blog options.
 http://img.skitch.com/20081229-pyqggxugiisiejfnms6dggqsnn.png

 To fix this, remove the "true" parameter from the call to current_time in
 wp-admin/admin-ajax.php. The documentation in wp-includes/functions.php
 also needs to be fixed. See attached diff files.

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


More information about the wp-trac mailing list