[Pkg-dspam-misc] Bug#361249: Admin statistics borked after DST hour change

Martijn Pieters mj at zopatista.com
Fri Apr 7 13:03:25 UTC 2006


I see the problem already. The code tries to extrapolate the past 25
dates by substracting multiples of 24 hours from today's earliest time.
As the Sunday we switched to DST only contains 23 hours, that day is
skipped altogether (Monday 00:00:00 minus 24 hours is Saturday 23:00:00).

The solution would be to rewrite that code to extrapolate a preceding
day based on the last-calculated day instead (earliest-time-in-a-day
minus 1 hour, extract day, month, year), or use a decent date-handling
package for Perl instead. This is where my Perl rust starts to creak
ominously though, and I just don't have the time to invest in oiling
myself in this respect.

Martijn Pieters


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-dspam-misc/attachments/20060407/2106e7fd/signature.pgp


More information about the Pkg-dspam-misc mailing list