Ticket #1879 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

changeset 3001 use local time, but compare to GMT

Reported by: gslin Assigned to: ryan
Priority: normal Milestone:
Component: General Version: 1.6
Severity: normal Keywords: time has-patch
Cc:

Description

In [3001] classes.php use local time to compare to GMT: (lines 621)

if (mysql2date('U', $this->posts[0]->post_date) >
mysql2date('U', $now)) { //it's future dated

It should fix to:

if (mysql2date('U', $this->posts[0]->post_date_gmt) >
mysql2date('U', $now)) { //it's future dated

Change History

11/14/05 21:55:38 changed by davidhouse

That's right, because $now comes from a gmdate() call. Just to save anyone else looking :)

11/14/05 23:28:11 changed by matt

  • status changed from new to closed.
  • resolution set to fixed.

(In [3089]) Mystery of the disappearing post solved, fixes #1879

11/30/06 19:41:47 changed by

  • milestone deleted.

Milestone 2.0 deleted