Fix parsing of timestamp options

This commit is contained in:
Martin Lund 2025-02-15 19:50:52 +01:00
parent 8f7bf2fd2c
commit 6831ad0eae
2 changed files with 14 additions and 12 deletions

View file

@ -998,7 +998,10 @@ void options_parse(int argc, char *argv[])
break;
case 't':
option.timestamp = TIMESTAMP_24HOUR;
if (option.timestamp == TIMESTAMP_NONE)
{
option.timestamp = TIMESTAMP_24HOUR;
}
break;
case OPT_TIMESTAMP_FORMAT: