summaryrefslogtreecommitdiff
path: root/lib/parsedate.c
diff options
context:
space:
mode:
authorNikos Tsipinakis <nikos@tsipinakis.com>2018-03-19 15:42:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-03-19 19:22:42 +0100
commitea233e5b4b3a3a3ca1d2d92c7d686c3a7341eaee (patch)
tree09ad4b99d5e9cb850f4cdef8dba32f6a4db49dc9 /lib/parsedate.c
parentbb790ca3a5872ba53be1e9c719510260baac7f45 (diff)
downloadcurl-ea233e5b4b3a3a3ca1d2d92c7d686c3a7341eaee.tar.gz
parsedate: support UT timezone
RFC822 section 5.2 mentions Universal Time, 'UT', to be synonymous with GMT. Closes #2401
Diffstat (limited to 'lib/parsedate.c')
-rw-r--r--lib/parsedate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/parsedate.c b/lib/parsedate.c
index aa27303fc..3d3c00b4f 100644
--- a/lib/parsedate.c
+++ b/lib/parsedate.c
@@ -119,6 +119,7 @@ static int parsedate(const char *date, time_t *output);
#define tDAYZONE -60 /* offset for daylight savings time */
static const struct tzinfo tz[]= {
{"GMT", 0}, /* Greenwich Mean */
+ {"UT", 0}, /* Universal Time */
{"UTC", 0}, /* Universal (Coordinated) */
{"WET", 0}, /* Western European */
{"BST", 0 tDAYZONE}, /* British Summer */