From 556a2b2b5b9dfe272e3247115b806f2f9435f3f8 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Sat, 31 Dec 2016 13:22:49 -0800 Subject: [PATCH] calendar.format: allow UTC to be in rfc822 timestamps. --- basis/calendar/format/format.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/calendar/format/format.factor b/basis/calendar/format/format.factor index e153bb2138..f5c799365c 100644 --- a/basis/calendar/format/format.factor +++ b/basis/calendar/format/format.factor @@ -213,7 +213,7 @@ ERROR: invalid-timestamp-format ; string>number check-timestamp ; : parse-rfc822-gmt-offset ( string -- dt ) - dup "GMT" = [ drop instant ] [ + dup { "UTC" "GMT" } member? [ drop instant ] [ unclip [ 2 cut [ string>number ] bi@ [ hours ] [ minutes ] bi* time+ ] dip signed-gmt-offset