This commit is contained in:
Martin Lund 2024-08-24 13:21:41 +02:00
parent bb2b4e30b2
commit 2e7da862c8

View file

@ -77,7 +77,7 @@ char *timestamp_current_time(void)
len = strftime(time_string, sizeof(time_string), "%Y-%m-%dT%H:%M:%S", tm); len = strftime(time_string, sizeof(time_string), "%Y-%m-%dT%H:%M:%S", tm);
break; break;
case TIMESTAMP_EPOCH: case TIMESTAMP_EPOCH:
// "1223" (seconds since Unix epoch, 1970-01-01 00:00:00Z) // "N.sss" (seconds since Unix epoch, 1970-01-01 00:00:00Z)
tv = tv_now; tv = tv_now;
tm = localtime(&tv.tv_sec); tm = localtime(&tv.tv_sec);
len = strftime(time_string, sizeof(time_string), "%s", tm); len = strftime(time_string, sizeof(time_string), "%s", tm);