Wrong timezone guess for Moscow
Categories
(Calendar :: General, defect)
Tracking
(thunderbird_esr78+ fixed)
People
(Reporter: cas, Assigned: cas)
Details
Attachments
(1 file, 1 obsolete file)
1.88 KB,
patch
|
darktrojan
:
review+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Steps to reproduce:
I try to use calendar in Thunderbird in Moscow and guessed timezone was empty in calendar settings.
Actual results:
There are two problem in comm/calendar/base/src/CalTimezoneService.jsm
- Program read only first 10 lines from /etc/sysconfig/clock. But there is Zone=Europe/Moscow in 18 line in ALT Linux distribution.
- Function guessSystemTimezone() use year 2005 for check timezone rule. But Europe/Moscow timezone rule changed since 2005.
Expected results:
I prepare patch to fix problems. I guess better use current year for check timezone rule.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
+1 for this, thanks, this patch has fixed detecting timezone on ROSA in Thunderbird 78 as well (it was not detected without it, and Europe/Moscow was correctly detected with it), but it will work until next change of timezone rules.
Comment 2•4 years ago
|
||
Thanks for the patch!
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
If user already has profile made earlier version with floating timezone, it set correctly guessed timezone.
Comment 5•4 years ago
|
||
Could be worth adding a code comment about that.
Assignee | ||
Comment 6•4 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #5)
Could be worth adding a code comment about that.
Well, how do I do it? Add corrected patch to bugzilla?
Comment 7•4 years ago
|
||
Yep, just upload a new patch. During the upload process it will ask if the new patch obsoletes older patches. There, mark the old one as obsolete.
While you're at it, please make sure to add a proper patch header with your user info etc for proper attribution, that is, what you get by hg export
when you've configured hg so that it knows your name and email.
Assignee | ||
Comment 8•4 years ago
|
||
This is corrected patch from mercurial export.
- Added commect for floating status check.
- Use current year for check timezone rule.
Comment 9•4 years ago
|
||
Don't forget to set the review flag. (I'll do it for you now)
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 10•4 years ago
|
||
Sorry, I use review flag for a fist time.
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
(In reply to Andrey Cherepanov from comment #4)
If user already has profile made earlier version with floating timezone, it set correctly guessed timezone.
I can see what it does, but I still don't understand why it does it or what it's got to do with this bug.
Assignee | ||
Comment 13•4 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #12)
(In reply to Andrey Cherepanov from comment #4)
If user already has profile made earlier version with floating timezone, it set correctly guessed timezone.
I can see what it does, but I still don't understand why it does it or what it's got to do with this bug.
I set Europe/Moscow as system timezone, ran Thunderbird on empty profile and got empty timezone field in Calendar settings. There is "floating" value in jsconsole.
Comment 14•4 years ago
|
||
Comment on attachment 9190537 [details] [diff] [review]
thunderbird-fix-guess-timezone-in-calendar.patch
I'm a little wary of changing the pref if it already has a value, but "floating" is probably a bad value, so okay.
Comment 15•4 years ago
|
||
Somebody will come along and land this soon. Congratulations on your first patch!
FYI for next time, we start commit messages with the bug number, so it would be "Bug 1678839 - Fix guess timezone in calendar". No need to update this patch, the person landing it will do so.
Comment 16•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/5c130de114a6
Fix guess timezone in calendar. r=mkmelin
Updated•4 years ago
|
Comment 17•4 years ago
|
||
Comment on attachment 9190537 [details] [diff] [review]
thunderbird-fix-guess-timezone-in-calendar.patch
[Approval Request Comment]
User impact if declined: wrong time-zone guess at least for Moscow
Comment 18•4 years ago
|
||
Comment on attachment 9190537 [details] [diff] [review]
thunderbird-fix-guess-timezone-in-calendar.patch
[Triage Comment]
Approved for esr78
Comment 19•4 years ago
|
||
bugherder uplift |
Thunderbird 78.6.1:
https://hg.mozilla.org/releases/comm-esr78/rev/fe956ed1b6a8
Description
•