← Commit list

b511f9cea

Manuel Novoa III
Manuel Novoa III
2003-07-23
FAILED Duration: 84s

Subject

Set the tm_isdst flag to -1 before calling mktime(). Otherwise, the current timezone setting is used for the new date.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/date.c+1 -0
@@ -209,6 +209,7 @@ int date_main(int argc, char **argv)
}
/* Correct any day of week and day of year etc. fields */
+ tm_time.tm_isdst = -1; /* Be sure to recheck dst. */
tm = mktime(&tm_time);
if (tm < 0) {
bb_error_msg_and_die(bb_msg_invalid_date, date_str);