date.c: only use the TZ names if we don't have anything better.
Also, add EEST (hey, it's Finland).
This commit is contained in:
6
date.c
6
date.c
@ -82,6 +82,7 @@ static const struct {
|
|||||||
{ "FWT", +1, 0, }, /* French Winter */
|
{ "FWT", +1, 0, }, /* French Winter */
|
||||||
{ "FST", +1, 1, }, /* French Summer */
|
{ "FST", +1, 1, }, /* French Summer */
|
||||||
{ "EET", +2, 0, }, /* Eastern Europe, USSR Zone 1 */
|
{ "EET", +2, 0, }, /* Eastern Europe, USSR Zone 1 */
|
||||||
|
{ "EEST", +2, 1, }, /* Eastern European Daylight */
|
||||||
{ "WAST", +7, 0, }, /* West Australian Standard */
|
{ "WAST", +7, 0, }, /* West Australian Standard */
|
||||||
{ "WADT", +7, 1, }, /* West Australian Daylight */
|
{ "WADT", +7, 1, }, /* West Australian Daylight */
|
||||||
{ "CCT", +8, 0, }, /* China Coast, USSR Zone 7 */
|
{ "CCT", +8, 0, }, /* China Coast, USSR Zone 7 */
|
||||||
@ -144,7 +145,10 @@ static int match_alpha(const char *date, struct tm *tm, int *offset)
|
|||||||
/* This is bogus, but we like summer */
|
/* This is bogus, but we like summer */
|
||||||
off += timezone_names[i].dst;
|
off += timezone_names[i].dst;
|
||||||
|
|
||||||
*offset = 60*off;
|
/* Only use the tz name offset if we don't have anything better */
|
||||||
|
if (*offset == -1)
|
||||||
|
*offset = 60*off;
|
||||||
|
|
||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user