Created attachment 203628 [details]
9:18 am message show as 7:18
For some time now I've noticed that the displayed message time sometimes differs between the TOC and message itself. I am able to reproduce using a thunderbird package from pkg.freebsd.org but does not happen under windows 10.
My theory is that the code is subtracting instead of adding an hour. I tested this by setting the system time back before DST took effect and the problem went away.
I took a stab at finding the place where TOC date formatting occurs but thunderbird is just too big for someone who doesn't work on it.
I'll attach a couple of screen grabs that show the problem.
Created attachment 203629 [details]
10:40pm message shown as 8:40pm
(In reply to Craig Leres from comment #0)
> My theory is that the code is subtracting instead of adding an
> hour. I tested this by setting the system time back before DST took
> effect and the problem went away.
DST adjusts 1 hour but the screenshot show discrepancy in 2 hours. Does it also occur with "TZ=UTC thunderbird"?
> I took a stab at finding the place where TOC date formatting occurs
> but thunderbird is just too big for someone who doesn't work on it.
Code specific to Thunderbird is under comm/mail/, code shared with SeaMonkey is under comm/mailnews/, code shared with Firefox is outside of comm/.
(In reply to Jan Beich from comment #2)
> Does it also occur with "TZ=UTC thunderbird"?
It works correctly with "env TZ=UTC thunderbird"
In mozilla-speak the "message list pane" is what I called the TOC.
When I tested the pkg.freebsd.org version of thunderbird I tried to eliminate things that are custom in my environment. So I moved my ~/.thunderbird directory and configured it to talk to an imaps server from scratch. But all of the dependent ports were from my build server.
I have a ubuntu desktop I use for testing and I configured one imaps server on it and it works correctly.
(Does anybody else see this bug?)