diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2024-02-29 22:23:43 +0100 |
---|---|---|
committer | Rob Browning <rlb@defaultvalue.org> | 2024-04-13 14:35:29 -0500 |
commit | bc2c612b89d3c4e7ef017a417af25b50f92fccee (patch) | |
tree | c6f528f9bec85a5b6d4e7afe58b33a619ce57cec /module/srfi/srfi-19.scm | |
parent | e6587c14dd2eee6983a0f0c5f2ca705850add07f (diff) | |
download | guile-bc2c612b89d3c4e7ef017a417af25b50f92fccee.tar.gz |
SRFI-19: Add support for ISO 8601 zones with a colon.
* module/srfi/srfi-19.scm (zone-reader): handle a colon in the zone.
* test-suite/tests/srfi-19.test (SRFI date/time library test): Add test.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
[rlb@defaultvalue.org: adjust commit message; add NEWS]
Diffstat (limited to 'module/srfi/srfi-19.scm')
-rw-r--r-- | module/srfi/srfi-19.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/srfi/srfi-19.scm b/module/srfi/srfi-19.scm index 570f933ca..d809ac1ec 100644 --- a/module/srfi/srfi-19.scm +++ b/module/srfi/srfi-19.scm @@ -1268,6 +1268,8 @@ (set! offset (+ offset (* (char->int ch) 60 60)))) (let ((ch (read-char port))) + (if (eqv? ch #\:) + (set! ch (read-char port))) (if (eof-object? ch) (time-error 'string->date 'bad-date-template-string (list "Invalid time zone number" ch))) |