Infinite loop when adjusting a time stamp backwards across a DST boundary.

Lee Ayres lee at onshored.com
Mon Feb 3 20:31:42 UTC 2014


When adjusting a time-stamp across the DST boundary it is possible to 
throw the function into an infinite loop.

For example, in US Central Time the following never returns:

(adjust-timestamp @2014-03-09T03:00:00.000000-05:00 (:offset :sec -1))

Attached is a patch that bails out before getting caught in the loop.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-bailout-condition-when-adjusting-time-accross-.patch
Type: text/x-patch
Size: 982 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/local-time-devel/attachments/20140203/5028557b/attachment.bin>


More information about the local-time-devel mailing list