Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1879 closed defect (bug) (fixed)

changeset 3001 use local time, but compare to GMT

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


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 (3)

#1 @davidhouse
16 years ago

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

#2 @matt
16 years ago

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

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

#3 @(none)
15 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.