Ticket #1879 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 5 years ago

changeset 3001 use local time, but compare to GMT

Reported by: gslin Owned by: 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

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

comment:2   matt6 years ago

  • Status changed from new to closed
  • Resolution set to fixed

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

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.