aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-11-28 22:07:00 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-11-28 22:07:00 +0100
commit56a5731a1a06ab785fc327b2a864466325fd262e (patch)
tree51fb4fdf342c2540a6911ce653ac39461d836a3b
parentf26c5660c2f4b6e096eca69f1de342fe3871ccf1 (diff)
downloadbusybox-56a5731a1a06ab785fc327b2a864466325fd262e.tar.gz
date: remove non-standard special-casing of date '+%f'
git log did not reveal why it is there. function old new delta date_main 1016 995 -21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/date.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 3a3344b90..585866fd2 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -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);
}