aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2014-01-19 19:45:59 +0000
committerRon Yorston <rmy@pobox.com>2014-01-19 19:45:59 +0000
commitae1b385859a4d1db78f077478f7aeff904d84453 (patch)
tree783395daf070ed08e573e8dee85b1f8050cd3e40 /coreutils
parentf0e65513106dfb105f85260a6b47383325304e5e (diff)
downloadbusybox-w32-ae1b385859a4d1db78f077478f7aeff904d84453.tar.gz
busybox-w32-ae1b385859a4d1db78f077478f7aeff904d84453.tar.bz2
busybox-w32-ae1b385859a4d1db78f077478f7aeff904d84453.zip
date: emulate %e format
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/date.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 62cceff9c..4860aa308 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -328,11 +328,7 @@ int date_main(int argc UNUSED_PARAM, char **argv)
328 i = sizeof("%a, %d %b %Y %H:%M:%S ")-1; 328 i = sizeof("%a, %d %b %Y %H:%M:%S ")-1;
329 goto format_utc; 329 goto format_utc;
330 } else { /* default case */ 330 } else { /* default case */
331#if ENABLE_PLATFORM_MINGW32
332 fmt_dt2str = (char*)"%a %b %d %H:%M:%S %Z %Y";
333#else
334 fmt_dt2str = (char*)"%a %b %e %H:%M:%S %Z %Y"; 331 fmt_dt2str = (char*)"%a %b %e %H:%M:%S %Z %Y";
335#endif
336 } 332 }
337 } 333 }
338#if ENABLE_FEATURE_DATE_NANO 334#if ENABLE_FEATURE_DATE_NANO
@@ -385,10 +381,6 @@ int date_main(int argc UNUSED_PARAM, char **argv)
385 if (strncmp(fmt_dt2str, "%f", 2) == 0) { 381 if (strncmp(fmt_dt2str, "%f", 2) == 0) {
386 fmt_dt2str = (char*)"%Y.%m.%d-%H:%M:%S"; 382 fmt_dt2str = (char*)"%Y.%m.%d-%H:%M:%S";
387 } 383 }
388#if ENABLE_PLATFORM_MINGW32
389 if (strstr(fmt_dt2str, "%e"))
390 bb_error_msg_and_die("%%e is not supported by Windows strftime");
391#endif
392 /* Generate output string */ 384 /* Generate output string */
393 strftime(date_buf, sizeof(date_buf), fmt_dt2str, &tm_time); 385 strftime(date_buf, sizeof(date_buf), fmt_dt2str, &tm_time);
394 } 386 }