Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libutil



Am 01.05.2024 um 21:59 schrieb Christos Zoulas:
> Module Name:	src
> Committed By:	christos
> Date:		Wed May  1 19:59:08 UTC 2024
>
> Modified Files:
> 	src/lib/libutil: parsedate.y
>
> Log Message:
> next should increement by 1 not 2.

Are you sure? I get these test results:

> t_parsedate (2/5): 7 test cases
>     atsecs: [0.006548s] Passed.
>     dates: [0.007241s] Passed.
>     dsttimes: [0.007517s] Passed.
>     gibberish: [0.007637s] Passed.
>     relative: [0.287375s] Failed: 2258 checks failed; see output for more details
>     times: [0.008402s] Passed.
>     zones: [0.007586s] Passed.

After your change, "next sunday" goes backward in time, for example:

>     From 28110552 (Sun Nov 22 08:29:12 1970) using "next sunday",
> obtained 28080000 (Sun Nov 22 00:00:00 1970);
> expected 28684800 (Sun Nov 29 00:00:00 1970)



Home | Main Index | Thread Index | Old Index