lib/, src/: Use %F instead of %Y-%m-%d with strftime(3)

%F is specified by ISO C99.  It adds semantic meaning as printing an
ISO 8601 date.

Scripted change:

	$ cat ~/tmp/spatch/strftime_F.sp
	@@
	@@

	- "%Y-%m-%d"
	+ "%F"
	$ find contrib/ lib* src/ -type f \
	| xargs spatch --sp-file ~/tmp/spatch/strftime_F.sp --in-place

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-08-01 12:32:12 +02:00
committed by Serge Hallyn
parent 04592e4cc7
commit 683b3caa62
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ print_day_as_date(long day)
return;
}
STRFTIME(buf, iflg ? "%Y-%m-%d" : "%b %d, %Y", &tm);
STRFTIME(buf, iflg ? "%F" : "%b %d, %Y", &tm);
(void) puts (buf);
}