diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-28 04:00:09 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-28 04:00:09 -0500 |
| commit | 0861fc6fc6614084bad79db36eeae4eefd75ff9e (patch) | |
| tree | 5a0da9bdecd73ccc0863766e0f5a0235f20d9bd9 /src/alf.c | |
| parent | 557f14c7abf3f72fc3b2f70c1402acde5a4d524f (diff) | |
| download | alftools-0861fc6fc6614084bad79db36eeae4eefd75ff9e.tar.gz | |
alf: store seconds in timestamp. unalf: display seconds with -v.
Diffstat (limited to 'src/alf.c')
| -rw-r--r-- | src/alf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
