Closed Bug 308832 Opened 19 years ago Closed 19 years ago

Alarms fire when created, not when set

Categories

(Calendar :: Sunbird Only, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lhabib, Assigned: mostafah)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050916 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050915 Mozilla Sunbird/0.2+

When I create an event or task with a popup alarm, I get a popup alert box
immediately after creating it.  The alert has the name of the event, with the
date, time, and word "floating".  The alert only pops up after creation of the
event, and NOT at the time it should go off.  

As well, I can only get rid of the alert box by clicking the "Dismiss all" or
"close" button - not "snooze").

Reproducible: Always

Steps to Reproduce:
1.Create event or task
2.Set popup alarm
3.

Actual Results:  
Alert pops up immediately after creation and not when it should.

Expected Results:  
Alerted me at the appropriate time, and not after event creation.
Confirming on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1)
Gecko/20050917 Mozilla Sunbird/0.2+
Status: UNCONFIRMED → NEW
Ever confirmed: true
Probably fallout from bug 306982.  Could possibly be from bug 298359.  We
probably want this to block 0.3a1 as well. mvl, thoughts?
wfm (linux, cvs build)
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20051008 Mozilla
Sunbird/0.2+

Installed sunbird-0.2+.en-US.linux-i686.tar.bz2 08-Oct-2005 14:52
from http://ftp.mozilla.org/pub/mozilla.org/calendar/sunbird/nightly/latest-trunk/

Same problem.

Ok, I did a little testing on this and I guess I can shed some more light on
this. Testing happened with the 20051020 nightly on WinXP.

This bug only occurs for me, when I create an event on the current day.

So let's say it is the 2005-10-22 - 8:00 AM. I create an event lasting from
13:00-14:00 and I want an alarm popup 15 minutes before the event begins. Right
after I created the event the alarm popup comes up.

If I create the same event for 13:00-14:00 on 2005-10-23 the alarm popup does
not show up.
Version: unspecified → Trunk
Does it fire upon daychange or at the correct time?
Attached patch use the right units β€” β€” Splinter Review
Actually, the alarms are not fired at creating, but just way too soon. Event
creted for the next day will also fire the alarm, but you have to wait longer.
The cause: a mixup of units. A delay is passed in in seconds, while the timer
assumes it is msec. Which mean the even will fire in 1000msec, instead of
1000sec....
Attachment #200239 - Flags: first-review?(dmose)
Comment on attachment 200239 [details] [diff] [review]
use the right units

r=dmose
Attachment #200239 - Flags: first-review?(dmose) → first-review+
patch checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: