Ticket #384 (new defect)

Opened 2 years ago

Last modified 2 years ago

Date incorrect with tzoffset

Reported by: sdcosta Assigned to: mbonetti
Priority: normal Milestone: Gregarius 0.5.5
Component: BUGS Version:
Severity: normal Keywords: date tzoffset
Cc:

Description

Gregarius does not take rss.config.tzoffset into account when grouping items by date. (Even using the default theme).

For example suppose an item has April 6th 2006 as the date, and we change rss.config.tzoffset enough so that the time difference goes past midnight and forces the date to change to April 5th, 2005. Then, although gregarius shows the correct time, it shows the wrong date everywhere. if you look at the permalink url of this item two things happen.

a). The url is incorrect. http://example.com/gregarius/2006/04/06/ instead of http://example.com/gregarius/2006/04/05/

b) The item says it was posted on April 6th instead of april 5th.

Change History

08/12/06 16:19:43 changed by mdodoo

We could fix this problem if we stored pubdate in UTC instead of the local server's timezone. That way, we could just use the server timezone as the default tzoffset, and allow the user to change the timezone as necessary.