mirror of
https://github.com/curl/curl.git
synced 2026-07-17 08:57:16 +03:00
parsedate: support UT timezone
RFC822 section 5.2 mentions Universal Time, 'UT', to be synonymous with GMT. Closes #2401
This commit is contained in:
parent
bb790ca3a5
commit
ea233e5b4b
2 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue