Merge pull request #46913 from thaJeztah/local_logs_timezone

daemon/logger/local: always use UTC for timestamps
This commit is contained in:
Sebastiaan van Stijn 2023-12-08 19:56:09 +01:00 committed by GitHub
commit f66f464802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,7 @@ func messageToProto(msg *logger.Message, proto *logdriver.LogEntry, partial *log
func protoToMessage(proto *logdriver.LogEntry) *logger.Message {
msg := &logger.Message{
Source: proto.Source,
Timestamp: time.Unix(0, proto.TimeNano),
Timestamp: time.Unix(0, proto.TimeNano).UTC(),
}
if proto.Partial {
var md backend.PartialLogMetaData