X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=date.c;h=1a4eb87b01d5dab0c4a0c455bbef3fda132415ee;hb=8bb65883d164843d5bb7475281af09bae18ab22d;hp=8f7050027053a4e2390097e341327b117404c26a;hpb=35865ca24500a0d46a012f7a55f39bf36389f7ba;p=git.git diff --git a/date.c b/date.c index 8f7050027..1a4eb87b0 100644 --- a/date.c +++ b/date.c @@ -213,9 +213,9 @@ static const struct { { "EAST", +10, 0, }, /* Eastern Australian Standard */ { "EADT", +10, 1, }, /* Eastern Australian Daylight */ { "GST", +10, 0, }, /* Guam Standard, USSR Zone 9 */ - { "NZT", +11, 0, }, /* New Zealand */ - { "NZST", +11, 0, }, /* New Zealand Standard */ - { "NZDT", +11, 1, }, /* New Zealand Daylight */ + { "NZT", +12, 0, }, /* New Zealand */ + { "NZST", +12, 0, }, /* New Zealand Standard */ + { "NZDT", +12, 1, }, /* New Zealand Daylight */ { "IDLE", +12, 0, }, /* International Date Line East */ }; @@ -682,10 +682,8 @@ static void date_am(struct tm *tm, int *num) static void date_never(struct tm *tm, int *num) { - tm->tm_mon = tm->tm_wday = tm->tm_yday - = tm->tm_hour = tm->tm_min = tm->tm_sec = 0; - tm->tm_year = 70; - tm->tm_mday = 1; + time_t n = 0; + localtime_r(&n, tm); } static const struct special {