'Draft Saved' current_time not reflecting timezone setting in the edit area
|Reported by:||designsimply||Owned by:||anonymous|
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.
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.