sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 09c2311b3a3d8514f2edf0b08a389e7eeba404ce
parent 6b950e436b9d81edb982d740d02198ba184402fb
Author: Richard Ipsum <richardipsum@fastmail.co.uk>
Date:   Sat, 13 Apr 2019 03:11:26 +0100

date: Fix default format string

From POSIX:

When no formatting operand is specified, the output in the POSIX
locale shall be equivalent to specifying:

           date "+%a %b %e %H:%M:%S %Z %Y"

Diffstat:
Mdate.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/date.c b/date.c @@ -66,7 +66,7 @@ main(int argc, char *argv[]) { struct tm *now; time_t t; - char buf[BUFSIZ], *fmt = "%c"; + char buf[BUFSIZ], *fmt = "%a %b %e %H:%M:%S %Z %Y"; t = time(NULL); if (t == -1)