Visitor Log month view is incomplete
|Reported by:||monnerat||Owned by:|
As stated in the summary, I only see one day when selecting a month view. The data export function also exports a single day.
From what I can see, this is a timezone problem (I'm east of UTC). It is not clear if the designer's intention were to show an UTC month or a localtime month, but there is some inconsistencies in date handling:
The month start date is taken as UTC first, then copied to some other object and associated to the local timezone, resulting in a local date being the last day of the previous month (for east of UTC). When we establish the list of target date, days are added one by one until the LOCAL TIME month changes: this is immediate.
The correct fix is not obvious: it depends on what is intended (target is UTC or localtime month). I have implemented a fix at the date conversion level, assuming locatime month range is targeted. May be it's not optimal (date handling should be probably changed and/or fully explained), but it allows a full month view.
Change History (9)
Changed 3 years ago by monnerat
comment:5 Changed 3 years ago by matt (mattab)
- Resolution set to fixed
- Status changed from new to closed