Ticket #41 (closed defect: duplicate)
GMT makes Freshness = -1
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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.
Please take a look at: http://bbpress.automattic.com/ticket/11