Skip to content

Commit

Permalink
Fix Windows log timestamps (#5568)
Browse files Browse the repository at this point in the history
Since 972bafb this was printing milliseconds in a microseconds field.
  • Loading branch information
fhvwy authored Feb 11, 2022
1 parent 15b28ba commit 329a7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/whist/utils/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int current_time_str(char* buffer, size_t size) {
GetSystemTime(&time_now);
return snprintf(buffer, size, "%04i-%02i-%02iT%02i:%02i:%02i.%06li", time_now.wYear,
time_now.wMonth, time_now.wDay, time_now.wHour, time_now.wMinute,
time_now.wSecond, (long)time_now.wMilliseconds);
time_now.wSecond, (long)time_now.wMilliseconds * US_IN_MS);
#else
struct tm* time_str_tm;
struct timespec time_now;
Expand Down

0 comments on commit 329a7ae

Please sign in to comment.