Closed (duplicate)
Project:
Drupal core
Component:
archive.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Jun 2004 at 11:00 UTC
Updated:
8 Aug 2006 at 18:47 UTC
Jump to comment: Most recent file
The user time zone values are added and substracted from local time values (mktime() and friends), and therefore the resulting datetime values are not right. gmmktime() should be used instead of mktime(), since GMT is what the timezone setting is supposed to be relative to. Here is a patch which fixes part of the problem. It would be nice if someone with understanding of the calendar printout code (or enough time to find out how does it work) would submit a patch against the mktime() issues there. This patch fixes the archive_page time issue.
Probably also relevant for HEAD (patch against 4.4.x CVS)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | modules_archive.module.PATCH | 865 bytes | spoggle |
| Drupal-archive-time.patch | 706 bytes | gábor hojtsy |
Comments
Comment #1
Kjartan commentedI would like to see a complete patch that handles everything. For that matter I would love to have the archive module improved in general.
Comment #2
Bèr Kessels commentedSetting this to CVS. We discussed removing this module on the Drupal Sprint. Whenever that happens, we can close this.
Comment #3
paul-at-murphymaphia.com commentedSo the solution to the problem is to just scrap the module? This patch doesn't seem to fix the problem in my case. Is there a newer patch?
Comment #4
killes@www.drop.org commentedChanging status.
Comment #5
spoggle commentedI know this is old, but I still see it in 4.7.0 - here is a patch that seems to solve things for me. The original patch was not quite complete and needed one more change to fix it.
Comment #6
gábor hojtsyThis patch has a better solution for the 4.7.x line. Later versions of Drupal will not include an archive module by default. http://drupal.org/node/73324