From 0861fc6fc6614084bad79db36eeae4eefd75ff9e Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 28 Nov 2025 04:00:09 -0500 Subject: alf: store seconds in timestamp. unalf: display seconds with -v. --- src/alf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/alf.c') diff --git a/src/alf.c b/src/alf.c index 234b169..49e69c2 100644 --- a/src/alf.c +++ b/src/alf.c @@ -144,7 +144,7 @@ unsigned long get_msdos_date_time(void) { msdos_year = tm->tm_year + 1900 - 1980; ms_date = tm->tm_mday | (tm->tm_mon << 5) | (msdos_year << 9); - ms_time = (tm->tm_min << 5) | (tm->tm_hour << 11); + ms_time = (tm->tm_sec >> 1) | (tm->tm_min << 5) | (tm->tm_hour << 11); return ms_date | (ms_time << 16); } -- cgit v1.2.3