Ticket #41 (closed defect: duplicate)

Opened 7 years ago

Last modified 6 years ago

GMT makes Freshness = -1

Reported by: anonymous Owned by: matt
Priority: normal Milestone:
Component: Front-end Version: 0.1
Severity: normal Keywords:
Cc:

Description

Symptoms: New posts to a forum make that forum have a "Freshness" of -1

Theory: I *think* this is related to the fact that my hardware clock is set to GMT. The article times in the database are set to GMT, which is 5 hours ahead of my localtime. Somewhere along the way, I suspect that a function is comparing GMT to localtime, although how this arrives at a figure of -1 I'm still not sure.

Change History

As far as I understand, microtime() is always going to return local time, while gmdate returns GMT/UTC. This seems to be the source of the problem, but I'm not yet sure what to do about it without breaking a *lot* of stuff. My simple attempts to fix it didn't seem to have any results at all, and I'm still attempting to follow the indirection to the actual code. I think I'm almost there. ;-)

Ah, sorry. Responded before I read the link. I see that this is covered in issue # 11.

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

Duplicate of #11, and resolved by the patch posted there.

Note: See TracTickets for help on using tickets.