← Commit list

56a5731a1

Denys Vlasenko
Denys Vlasenko
2020-11-28
SUCCESS Duration: 151s

Subject

date: remove non-standard special-casing of date '+%f'

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+0 -4
@@ -383,10 +383,6 @@ int date_main(int argc UNUSED_PARAM, char **argv)
/* With no format string, just print a blank line */
date_buf[0] = '\0';
} else {
- /* Handle special conversions */
- if (is_prefixed_with(fmt_dt2str, "%f")) {
- fmt_dt2str = (char*)"%Y.%m.%d-%H:%M:%S";
- }
/* Generate output string */
strftime(date_buf, COMMON_BUFSIZE, fmt_dt2str, &tm_time);
}