Opened 4 years ago

Closed 4 years ago

#9586 closed defect (bug) (invalid)

Autosave problem when server is not using GMT time

Reported by: Denis-de-Bernardy Owned by:
Priority: normal Milestone:
Component: Date/Time Version: 2.8
Severity: normal Keywords: has-patch dev-feedback
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 4 years ago.

Download all attachments as: .zip

Change History (5)

  • Keywords has-patch dev-feedback added

comment:3   ryan4 years ago

  • Component changed from JavaScript to Date/Time
  • Owner azaozz deleted
  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.