From 21a3b3324e70687377ea9a5f4aa6db13adb0328a Mon Sep 17 00:00:00 2001 From: bobbyboy5069 <106821778+bobbyboy5069@users.noreply.github.com> Date: Fri, 24 Jun 2022 23:02:15 +0300 Subject: [PATCH] add padding to dates in issue file Pad the day of the month so the length of the date string doesn't change. --- term-utils/agetty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 22850786da..cecde2cdf6 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -2792,7 +2792,7 @@ static void output_special_char(struct issue *ie, localtime_r(&now, &tm); if (c == 'd') /* ISO 8601 */ - fprintf(ie->output, "%s %s %d %d", + fprintf(ie->output, "%s %s %2d %d", nl_langinfo(ABDAY_1 + tm.tm_wday), nl_langinfo(ABMON_1 + tm.tm_mon), tm.tm_mday, -- 2.47.2