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

Mihai Călin Bazon mihai.bazon at gmail.com
Mon Feb 3 20:37:04 UTC 2014


I wonder if it's related to this:
http://lists.common-lisp.net/pipermail/local-time-devel/2010-December/000217.html

(and if so, sad to see the problem still there after so many years).


On Mon, Feb 3, 2014 at 10:31 PM, Lee Ayres <lee at onshored.com> wrote:

> 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.
>



-- 
Mihai Bazon,
http://lisperator.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/local-time-devel/attachments/20140203/86cb3843/attachment.html>


More information about the local-time-devel mailing list