WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 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:

Description

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 5 years ago.

Download all attachments as: .zip

Change History (5)

Denis-de-Bernardy5 years ago

comment:1 Denis-de-Bernardy5 years ago

  • Keywords has-patch dev-feedback added

comment:3 ryan5 years ago

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

comment:4 Denis-de-Bernardy5 years ago

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