From ea233e5b4b3a3a3ca1d2d92c7d686c3a7341eaee Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Mon, 19 Mar 2018 15:42:36 +0200 Subject: parsedate: support UT timezone RFC822 section 5.2 mentions Universal Time, 'UT', to be synonymous with GMT. Closes #2401 --- lib/parsedate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 */ -- cgit v1.2.3