Skip to content

Commit

Permalink
Fix wrong timestamp in log message (#1180) (#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Oct 23, 2020
1 parent 3c4d454 commit f0a78d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Common/UnifiedLogPatternFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ std::string UnifiedLogPatternFormatter::getTimestamp() const
int hour = local_tm->tm_hour;
int minute = local_tm->tm_min;
int second = local_tm->tm_sec;
int milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(time_point.time_since_epoch()).count() % 1000000 / 1000;
int milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(time_point.time_since_epoch()).count() % 1000;

int zone_offset = local_tm->tm_gmtoff;

Expand Down

0 comments on commit f0a78d9

Please sign in to comment.