[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52209: 28.0.60; [PATCH] date-to-time fails on pure dates
From: |
Lars Ingebrigtsen |
Subject: |
bug#52209: 28.0.60; [PATCH] date-to-time fails on pure dates |
Date: |
Wed, 01 Dec 2021 05:17:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Bob Rogers <rogers-emacs@rgrjr.homedns.org> writes:
> In the emacs-28 branch at 0dd3883def:
>
> Imagine my surprise when evaluating
>
> (days-between "2021-10-22" "2020-09-29")
>
> returned zero.
Thanks, applied to Emacs 29.
(These functions were never really intended to support parsing dates
like that -- only strict RFC822 date strings were originally supported,
but it's become more DWIM as time has passed. Especially since it
wasn't explicitly stated anywhere that time-date.el was an RFC822
library.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no