[google/syzkaller] 9765ef: pkg/email: normalize parsed dates to UTC

0 views
Skip to first unread message

Alexander Potapenko

unread,
Apr 21, 2026, 6:04:26 AM (3 days ago) Apr 21
to syzk...@googlegroups.com
Branch: refs/heads/gh-readonly-queue/master/pr-7099-ac66228323b15c75c56a0b7325d4d963a71cf1d4
Home: https://github.com/google/syzkaller
Commit: 9765efe05c3525d801a015a7713ea12af3a6309f
https://github.com/google/syzkaller/commit/9765efe05c3525d801a015a7713ea12af3a6309f
Author: Alexander Potapenko <gli...@google.com>
Date: 2026-04-21 (Tue, 21 Apr 2026)

Changed paths:
M pkg/email/lore/parse_test.go
M pkg/email/parser.go
M pkg/email/parser_test.go

Log Message:
-----------
pkg/email: normalize parsed dates to UTC

As suggested by Aleksandr, normalize the date parsed from emails to UTC.
This makes the parsing result environment-independent and avoids failures
in tests due to different location pointers (e.g. time.Local vs fixed zone)
when the local time zone offset matches the offset in the email date string.
Updated tests in pkg/email and pkg/email/lore to expect UTC dates and
removed the previous workarounds that aligned locations in tests.



To unsubscribe from these emails, change your notification settings at https://github.com/google/syzkaller/settings/notifications

Alexander Potapenko

unread,
Apr 21, 2026, 6:15:49 AM (3 days ago) Apr 21
to syzk...@googlegroups.com
Branch: refs/heads/master
Reply all
Reply to author
Forward
0 new messages