Adding 24 hours to midnight on a day with 25 hours still results in the
same day, explaining your results. The FAQ details several options for
avoiding the issue, such as fixing your calculations to UTC (which does
not have daylight savings) or basing your computations relative to noon
instead of midnight (since both a computed 11am and 1pm still fall in
the right day, if your relative computation was affected by a daylight
savings adjustment).
This transmission has been issued by a member of the HSBC Group
Employer disclaimers cannot be enforced on publicly archived lists; it
is considered better netiquette to send mail from private email accounts
that will not append unenforceable text.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org