cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 44ea824d44c46e4d6ac0cfccfc22a81362859170
parent 5e93a4c6bd2f6198f6242b3b03bf3941ff70e5d8
Author: Daniel Barlow <dan@telent.net>
Date:   Wed, 16 Sep 2026 17:59:18 +0100

fix failing iso date test

Diffstat:
Mlib.fnl | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib.fnl b/lib.fnl @@ -71,7 +71,7 @@ (fn parse-iso-timestamp [date-str] (let [(s _ year month day hour min sec frac) - (string.find date-str "(%d+)%-(%d+)%-(%d+)T(%d+):(%d+):(%d+)%.(%d+) -Z")] + (string.find date-str "(%d+)%-(%d+)%-(%d+)[T ](%d+):(%d+):(%d+)%.(%d+) -Z")] (and s (os.time { : year @@ -100,7 +100,7 @@ (expect= (parse-timestamp "2024-05-08T12:46:56.865432Z") 1715172416) - (expect= (parse-timestamp "2023-10-03 19:10:23.000000000 Z") 1715172416) + (expect= (parse-timestamp "2023-10-03 19:10:23.000000000 Z") 1696360223) )