calendar.format: allow UTC to be in rfc822 timestamps.
parent
4d580d95bf
commit
556a2b2b5b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue