Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#29504 closed defect (bug) (fixed)

"Last updated" field for plugins is wrong

Reported by: davidanderson's profile DavidAnderson Owned by:
Milestone: 4.0 Priority: normal
Severity: normal Version: 4.0
Component: Plugins Keywords:
Focuses: Cc:

Description

About 10 minutes ago, I updated the readme.txt for this plugin: http://wordpress.org/plugins/use-administrator-password/. Before then it was last updated some weeks ago.

Then I went to install it, in WordPress 4.0 RC 2, using the new plugin browser.

For the plugin, It displays "Last Updated: 8 hours ago".

I suppose that timezones aren't being taken into account somewhere along the line. (I am in UTC+1, and the WordPress site is on a server in UTC+1 and has a timezone setting of UTC+0).

Change History (1)

#1 @nacin
9 years ago

  • Milestone changed from Awaiting Review to 4.0
  • Resolution set to fixed
  • Status changed from new to closed

This is not new, but it's more obvious in 4.0.

Basically, the API only sends back the date, not the time. We then run human_time_diff() over it, and without the time it's assuming midnight which was eight hours ago in GMT.

Thanks Otto42 for figuring this out and also fixing it on .org by having the API send back the time too. (Should be deployed soon.)

Note: See TracTickets for help on using tickets.