diff options
author | Martin Mares <mj@ucw.cz> | 2024-02-18 12:09:19 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2024-02-18 12:09:19 +0100 |
commit | 5de4f91b7190d7eec42f55a2b79e679a71f283be (patch) | |
tree | f6de32ccd7438a73c95406879272805a2c7dd7a1 | |
parent | de62139f374d04fd1c11fb9502a7e972595c31da (diff) | |
download | pciutils-5de4f91b7190d7eec42f55a2b79e679a71f283be.tar.gz |
pcilmr: Avoid strftime with %F and produce proper ISO 8601 time
%F is not portable.
-rw-r--r-- | lmr/margin_results.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lmr/margin_results.c b/lmr/margin_results.c index 6d6ed29..4d28f04 100644 --- a/lmr/margin_results.c +++ b/lmr/margin_results.c @@ -177,7 +177,7 @@ margin_results_save_csv(struct margin_results *results, u8 recvs_n, char *dir, { char timestamp[64]; time_t tim = time(NULL); - strftime(timestamp, sizeof(timestamp), "%FT%H.%M.%S", gmtime(&tim)); + strftime(timestamp, sizeof(timestamp), "%Y-%m-%dT%H:%M:%S", gmtime(&tim)); size_t pathlen = strlen(dir) + 128; char *path = xmalloc(pathlen); |