#8750 closed defect (bug) (fixed)
'Draft Saved' current_time not reflecting timezone setting in the edit area
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.7.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Update current_time documentation.