1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 22:40:34 +02:00

Web: accept "UTC" as the zone offset in date headers.

Fixes <http://bugs.gnu.org/14128>.
Reported by Aleix Conchillo Flaqué <aconchillo@gmail.com>.

* module/web/http.scm (parse-zone-offset): Accept "UTC".
This commit is contained in:
Mark H Weaver 2013-11-18 00:44:17 -05:00
parent a4ecb437bc
commit 8904b7a936

View file

@ -716,6 +716,8 @@ as an ordered alist."
(cond
((string=? s "GMT")
0)
((string=? s "UTC")
0)
((string-match? s ".dddd")
(let ((sign (case (string-ref s 0)
((#\+) +1)