reordered

SCCS-file: date.c
SCCS-SID: 4.12
This commit is contained in:
Arthur David Olson
2012-07-18 03:01:58 -04:00
committed by Paul Eggert
parent 0a22031b69
commit e8ffefa564
+8 -2
View File
@@ -178,9 +178,15 @@ char * argv[];
}
}
if (value != NULL) {
t = convert(value, (dousg = FALSE), now);
/*
** This order ensures that "reasonable" twelve-digit inputs
** (such as 120203042006) won't be misinterpreted
** even if time_t's range all the way back to the thirteenth
** century. Do not change the order.
*/
t = convert(value, (dousg = TRUE), now);
if (t == -1)
t = convert(value, (dousg = TRUE), now);
t = convert(value, (dousg = FALSE), now);
if (t == -1) {
/*
** Out of range values,