Ticket #8750 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 3 years ago

'Draft Saved' current_time not reflecting timezone setting in the edit area

Reported by: designsimply Owned by: anonymous
Priority: normal Milestone: 2.7.1
Component: General Version:
Severity: normal Keywords: has-patch
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.

Attachments

functions.php.diff Download (1.0 KB) - added by designsimply 3 years ago.
Update current_time documentation.
admin-ajax.php.diff Download (483 bytes) - added by designsimply 3 years ago.
Make current_time respect the timezone setting on the draft edit page.

Change History

Update current_time documentation.

Make current_time respect the timezone setting on the draft edit page.

  • Keywords has-patch added

comment:2   ryan3 years ago

  • Status changed from new to closed
  • Resolution set to fixed

(In [10490]) Respect time zone when displaying autosave and revision time. Props janbrasna, designsimply. fixes #8750 #6489 for trunk

comment:3   ryan3 years ago

(In [10491]) Respect time zone when displaying autosave and revision time. Props janbrasna, designsimply. fixes #8750 #6489 for 2.7

Note: See TracTickets for help on using tickets.