Skip to content

Commit

Permalink
Support UT timezone
Browse files Browse the repository at this point in the history
RFC822 section 5.2 mentions Universal Time, 'UT', to be synonymous with
GMT.
  • Loading branch information
tsipinakis committed Mar 19, 2018
1 parent bb790ca commit 9cc6cce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/parsedate.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 9cc6cce

Please sign in to comment.