Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#9586 closed defect (bug) (invalid)

Autosave problem when server is not using GMT time

Reported by: Denis-de-Bernardy Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Date/Time Keywords: has-patch dev-feedback
Focuses: Cc:


The autosave uses the following as $now and $then:

$now = time();
$then = strtotime($post->post_date_gmt . ' +0000');

So, the second is GMT but not necessarily the first. Shouldn't it be strtotime(gmdate("Y-m-d H:i:s")) instead?

Attachments (1)

9586.diff (538 bytes) - added by Denis-de-Bernardy 9 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Denis-de-Bernardy
9 years ago

  • Keywords has-patch dev-feedback added

#3 @ryan
9 years ago

  • Component changed from JavaScript to Date/Time
  • Owner azaozz deleted

#4 @Denis-de-Bernardy
9 years ago

  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.