Merge pull request #46951 from thaJeztah/23.0_backport_local_logs_timezone

[23.0 backport] daemon/logger/local: always use UTC for timestamps
This commit is contained in:
Sebastiaan van Stijn 2024-01-19 12:11:37 +01:00 committed by GitHub
commit 97280b92b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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