]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/, src/: Use %F instead of %Y-%m-%d with strftime(3)
authorAlejandro Colomar <alx@kernel.org>
Thu, 1 Aug 2024 10:32:12 +0000 (12:32 +0200)
committerSerge Hallyn <serge@hallyn.com>
Fri, 23 Aug 2024 03:51:57 +0000 (22:51 -0500)
commit683b3caa6237ab05c026b6b351f04410750481a5
tree1f297d2d7cce4f52692f65d044da1c00efb53901
parent04592e4cc73541257a54071a29df92efcb54ea20
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>
lib/time/day_to_str.h
src/chage.c