replace date, strftime %G-%m-%d with %F
commit283939fb8245f1600227fa1cde3c5623666fac8d
authorLucas Gabriel Vuotto <lucas@sexy.is>
Tue, 23 Apr 2024 21:03:45 +0000 (23 21:03 +0000)
committerOmar Polo <op@omarpolo.com>
Tue, 23 Apr 2024 21:03:45 +0000 (23 21:03 +0000)
tree207deb469d290233ae87a75b7800e1c6b430a032
parent2c1b17802598396420e45c97fe4e8d2d03fcb523
replace date, strftime %G-%m-%d with %F

Use the more predictable %F, aka %Y-%m-%d, instead of %G-%m-%d.  %G
follows the definition of ISO-8601 week-based year, which is weird.
In particular, 2024 is one of such years with weird behaviour:

$ date -jf %Y-%m-%d +"%F %G-%m-%d" 2024-12-30
2024-12-30 2025-12-30

Diff from Lucas Gabriel Vuotto (thanks!); stsp agrees
12 files changed:
cvg/cvg.c
got/got.c
gotd/libexec/got-notify-email/got-notify-email.c
gotwebd/got_operations.c
regress/cmdline/blame.sh
regress/cmdline/histedit.sh
regress/cmdline/log.sh
regress/cmdline/rebase.sh
regress/gotd/email_notification.sh
regress/tog/blame.sh
regress/tog/log.sh
tog/tog.c