Closed Bug 242465 Opened 20 years ago Closed 19 years ago

EPOC generated whole day event rendered from 2AM to 2AM next day

Categories

(Calendar :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bugzilla, Assigned: mostafah)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040306 Mozilla Sunbird/0.1.1+

Exporting a whole day event from the calendar from my SonyEricsson P800
(Symbian, EPOC) and importing in Moz.Cal. shows a wrong starting time.

Reproducible: Always
Steps to Reproduce:
1. Use this event (generated by EPOC calendar)
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
UID:735
SUMMARY:my whole day event
DTSTART:20040508T000000Z
DTEND:20040508T240000Z
X-EPOCAGENDAENTRYTYPE:EVENT
CLASS:PUBLIC
DCREATED:20040417T220000Z
LAST-MODIFIED:20040418T180000Z
PRIORITY:0
STATUS:NEEDS ACTION
END:VEVENT
END:VCALENDAR

2. Import it in Moz.Cal

3. View the results

Actual Results:  
The DTSTART:20040508T000000Z and DTEND:20040508T240000Z are rendered as starting
on the right day on 2AM and ends on the wrong day at 2AM.

Expected Results:  
I expected it to start on 00.00 and end at 24.00hrs.

I tried making a whole day event in Moz.Cal. The VERSION is different. And the
VALUE=DATE is appended to the DTSTART and DTEND.
Is version:1.0 actually supported in Moz.Cal? :)
If not, I suppose it would be nice, since all those Symbian phones are 1.0
based. I can add bugs if needed.

BEGIN:VCALENDAR
VERSION
 :2.0
PRODID
 :-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN
BEGIN:VEVENT
UID
 :8304ba3e-9d3a-11d8-a9fd-867228b745c8
SUMMARY
 :my whole day event
STATUS
 :TENTATIVE
CLASS
 :PRIVATE
X-MOZILLA-ALARM-DEFAULT-LENGTH
 :0
DTSTART
 ;VALUE=DATE
 :20040513
DTEND
 ;VALUE=DATE
 :20040514
DTSTAMP
 :20040503T194558Z
END:VEVENT
END:VCALENDAR
may have a slight thing to do with the fact that Ericsson P800 uses ical v1 (if
I am reading right)...which sets an all-day event with a Time Value.

Current standard says to omit time in an all day event, store start-day = 12:00
midnight "Before Day"  end date = 12:00 midnight "After Date".

hence why we have 20040513
and 20040514 on ours,  the P800 shows both start and end on same date, just
modifies Time value of it.

also the ;VALUE=DATE
is a comment if I am right, though didnt study the ical stuff much yet, so could
be wrong.

If all my comments are correct, suggest invalid/wontfix.
AFAIK a lot of these Symbian based phones use VERSION:1.0
Is there any policy regarding which iCal version is supported?
Maybe the MozCal could be enhanced to deal with vcal1 and vcal2 in different
ways so these events would be imported as the user expected them to be imported.

If Justins observations about the differences in the standards is correct then
the files are indeed valid but messes things up for the user.
QA Contact: gurganbl → general
The problem isn't so much the version as the way the data is exported.  A time ending in 'Z' is meant to be UTC time, so Sunbird converts that time to your local time, resulting in the start/end times being unexpected.  Furthermore, all-day events must have the property VALUE=DATE;.  This is therefore an invalid bug report.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.