Ticket #1879 (closed defect (bug): fixed)
changeset 3001 use local time, but compare to GMT
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
Note: See
TracTickets for help on using
tickets.

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