Africa/Monrovia work

SCCS-file: localtime.c
SCCS-SID: 7.71
This commit is contained in:
Arthur David Olson
2012-07-18 03:02:37 -04:00
committed by Paul Eggert
parent d5355bea89
commit 085fb26a16
+3 -1
View File
@@ -1381,7 +1381,9 @@ const int do_norm_secs;
}
if (increment_overflow(&yourtm.tm_year, -TM_YEAR_BASE))
return WRONG;
if (yourtm.tm_year + TM_YEAR_BASE < EPOCH_YEAR) {
if (yourtm.tm_sec >= 0 && yourtm.tm_sec < SECSPERMIN)
saved_seconds = 0;
else if (yourtm.tm_year + TM_YEAR_BASE < EPOCH_YEAR) {
/*
** We can't set tm_sec to 0, because that might push the
** time below the minimum representable time.