Closed
Bug 1180257
Opened 10 years ago
Closed 10 years ago
mozAlarm fires alarms not at the expected time after a timezone change
Categories
(Core :: DOM: Device Interfaces, defect, P1)
Tracking
()
RESOLVED
DUPLICATE
of bug 1181489
blocking-b2g | 2.5+ |
Tracking | Status | |
---|---|---|
b2g-master | --- | affected |
People
(Reporter: jlorenzo, Assigned: timhuang)
References
Details
Attachments
(1 file)
12.09 KB,
text/plain
|
Details |
Bug coming from :padenot's device.
Steps to reproduce
1. Get an Aries in Vancouver and set some alarms
2. Fly back to France, and don't touch any of your alarms
3. Wait.
Results
The always are triggered at the same time (in the afternoon) but not at the expected time. This is not due to a simple timezone difference. For instance (see logs): 2 alarms are set, one at 8:30am UTC+2 and the other at 8:53am UTC+2 => The alarm rang at 5:06pm UTC+2.
After taking a look at the log, nothing seems to be wrong on the Gaia side, as the first log line generated is from the mozAlarm handler[1].
More over, this is not a problem with the internal clock, like we have on the Flame. This is happening on the Aries, which was at the right time when the alarm rang.
Reporter | ||
Updated•10 years ago
|
Component: Gaia::Clock → DOM: Device Interfaces
Product: Firefox OS → Core
Reporter | ||
Updated•10 years ago
|
Summary: mozAlarm fires alarms not at the expected time → mozAlarm fires alarms not at the expected time after a timezone change
Reporter | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Noting that we set 'ignoreTimezone' when scheduling alarms, which should cause mozAlarms to fire at the same local time regardless of timezone (an alarm at 8:30am should fire at 8:30am in whatever time zone you're currently in)[1].
[1] https://developer.mozilla.org/en-US/docs/Web/API/Alarm_API#Alarms_ignoring_time_zones
Reporter | ||
Comment 3•10 years ago
|
||
ignoreTimezone was set. But if I understand correctly and if I refer to the logs, the alarm should be triggered at 6:30am in whichever timezone. However, the alarm is displayed to be at 8:30am.
Reporter | ||
Comment 4•10 years ago
|
||
[Blocking Requested - why for this release]: Shipping a device which sometimes can't handle time zones, is a problem that can annoy our end users.
blocking-b2g: --- → 2.5?
Comment 6•10 years ago
|
||
Marcus,
Can you please set a priority and owner for this bug?
Thanks
Flags: needinfo?(m)
Comment 7•10 years ago
|
||
Tim, do you think if there is anything you can help for this bug?
Flags: needinfo?(tihuang)
Updated•10 years ago
|
Flags: needinfo?(m)
Assignee | ||
Comment 8•10 years ago
|
||
I can help on this bug for sure. And I think we could try the patch on bug 1181489 first :).
Flags: needinfo?(tihuang)
Comment 10•10 years ago
|
||
According comment 8, since bug 1181489 has been fixed, please check if this bug still exists.
Flags: needinfo?(jlorenzo)
Keywords: qawanted
Comment 11•10 years ago
|
||
(In reply to Ken Chang[:ken] from comment #10)
> According comment 8, since bug 1181489 has been fixed, please check if this
> bug still exists.
Ken, who should assigned owner be on this? Currently it says nobody
Reporter | ||
Comment 13•10 years ago
|
||
I arrived in Mountain View yesterday, so I am able to test the timezone changes in real conditions.
However, I can't set an alarm on my dogfood due to bug 1208807. Combined with bug 1208808, all the alarms I set are not at the time I want to.
Removing qawanted, while the dependency gets solved.
Flags: needinfo?(jlorenzo)
Keywords: qawanted
Comment 15•10 years ago
|
||
Johan, 1208807 is set as part of backlog. Do you mean it should block 2.5 as 1208807 and 1180257 are dependent bugs?
Reporter | ||
Comment 16•10 years ago
|
||
(In reply to Ken Chang[:ken] from comment #14)
Hard to know, time has always been an issue on Flame.
(In reply to Mahendra Potharaju [:mahe] from comment #15)
Sorry, I forgot to update this bug, once we figured out bug 1208807 was partly dupe of others, and partly a feature.
Now that I found a workaround to by pass bug 1208808, I'll try to reproduce this problem once I change of timezone, before next week.
No longer depends on: 1208807
Flags: needinfo?(jlorenzo)
Comment 17•10 years ago
|
||
Based on how mozAlarms works, I don't think we need realism on the timezone change. The only thing distinctive about a realistic time change is we would expect to potentially have _onTimezoneChanged and _onSystemClockChanged fire in rapid succession. It appears it would be possible for a race to occur where a deemed-expired-on-reload alarm could fire twice instead of once in that case, but that would not describe the problems manifesting here. Those problems are already covered by other bugs that are believed fixed. Specifically:
Comment 0 describes bug 1181489, and comment 3 describes bug 1178208, both fixed.
Reporter | ||
Comment 18•10 years ago
|
||
After a timezone change, every single of my 3 alarms was triggered at the right time on [1]. I am not the person who created the alarms mentioned in comment 0. Maybe some steps are missing. :padenot, is the time set automatically? Or did you change the timezone manually?
If you're in the second case, we're likely blocked by bug 1208808.
[1] Build ID 20151009104251
Gaia Revision 1609aecaba381c14eff95d5084e59280f53b7d8b
Gaia Date 2015-10-09 07:16:19
Gecko Revision https://hg.mozilla.org/mozilla-central/rev/d01dd42e654b8735d86f9e7c723cc869a3b56798
Gecko Version 44.0a1
Device Name aries
Firmware(Release) 4.4.2
Firmware(Incremental) eng.naoki.20151007.074137
Firmware Date Wed Oct 7 07:41:46 PDT 2015
Bootloader s1
Flags: needinfo?(padenot)
Reporter | ||
Comment 19•10 years ago
|
||
(In reply to Johan Lorenzo [:jlorenzo] (QA) from comment #18)
> If you're in the second case, we're likely blocked by bug 1208808.
I meant the first case.
Comment 20•10 years ago
|
||
I don't know for sure, I don't want to lead you on the a wrong path.
Flags: needinfo?(padenot)
Comment 21•10 years ago
|
||
Okay, then I think we can resolve this since the problem identified in the subject is fixed by bug 1181489, and everything else is tracked on other bugs, some of which are fixed. I'm duping to bug 1181489 rather than resolving worksforme because we've had so many clock/alarms related issues that it seems helpful to have them clearly duped rather than requiring people to parse the bug comments.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•