Description

Caching data in stats/hitcounts.py doesn't work OK, for two reasons.

  1. Time zone differences: new data is stored for days depending on what timezone the user is in.
  2. Time format differences: new data on same day when user has different date format then other user accessing the chart on the same day

Steps to reproduce

  1. Access EventStats/HitCounts

  2. Change your date/time format in preferences
  3. Access EventStats/HitCounts

  4. Change your time zone in preferences, so you will be on another day
  5. Access EventStats/HitCounts

  6. Restore your time zone in preferences
  7. Access EventStats/HitCounts

Example

HitCounts.gif

Component selection

Details

MoinMoin Version

Release 1.5.8

OS and Version

Linux

Python Version

2.4.4

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

en

Workaround

Disable caching

Discussion

You can fix the date format thing by caching not formatted dates, but time values.

You can fix the time zone thing by always using UTC times, but this means someone in another time zone won't see the correct values for his or her location.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/HitCountsDateClash (last edited 2007-10-29 19:09:37 by localhost)