]> Pileus Git - aweather/commit
Revert "Fix off-by-one on date"
authorAndy Spencer <andy753421@gmail.com>
Sat, 18 Feb 2012 03:09:43 +0000 (03:09 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 19 Feb 2012 21:02:53 +0000 (21:02 +0000)
commitb669a540beef89cb39fa1f7ec195002eca47440b
tree148c89878d43ccad49cdde2db06444d06174b148
parentef8e4143f59842ad994e20ab10de61bbafc4b75b
Revert "Fix off-by-one on date"

This issue is related to whether or not the users timezone accounts for
leap seconds in Unix timestamps.

For instance, 1325376000 in TZ=UTC is 2011-01-01 00:00:00, but in
TZ=right/UTC it is 2011-12-31 23:59:36.

RSL generates the dates by using gmtime at time 00:00:00 on a particular
date since the epoch. If the timezone includes leap seconds, this will
return the previous day rather than the desired day, which is why the
original +1 was added to AWeather.

However, nobody uses timezones that include leap seconds (i.e. the
right/ folder) so it's better to leave it how it is.
src/plugins/level2.c