Closed Bug 333903 Opened 18 years ago Closed 18 years ago

Wrong UTC time's when exporting to vCalender when 'Store dates in UT' is on.

Categories

(Calendar :: Internal Components, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bugs, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

When the option 'Store dates in Universal Time' in the General Calendar Options is set, the times are wrong.

It looks like Calendar is still correcting for Time zone/Daylight saving, while the time are already in UTC.

When the option 'Store dates in Universal Time' is not set, the times are correct.

Reproducible: Always

Steps to Reproduce:
1. Set the 'Store dates in Universal Time' option.
2. Create an 'New Event', example 'UTC time check' from 22:00 to 23:00
3. Export that event to a vCalender file

Actual Results:  
vCalender file:
BEGIN:VCALENDAR
VERSION:1.0
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN
METHOD:PUBLISH
BEGIN:VEVENT
UID:859aed10-cb24-11da-9d20-96de0c92e1af
SUMMARY:Time Test - UTC stored
STATUS:TENTATIVE
CLASS:PRIVATE
X-MOZILLA-ALARM-DEFAULT-LENGTH:0
X-MOZILLA-RECUR-DEFAULT-INTERVAL:0
DTSTART:20060417T180000Z
DTEND:20060417T190000Z
DTSTAMP:20060413T193416Z
END:VEVENT
END:VCALENDAR

Expected Results:  
vCalnder file:
BEGIN:VCALENDAR
VERSION:1.0
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN
METHOD:PUBLISH
BEGIN:VEVENT
UID:859aed10-cb24-11da-9d20-96de0c92e1af
SUMMARY:Time Test - UTC stored
STATUS:TENTATIVE
CLASS:PRIVATE
X-MOZILLA-ALARM-DEFAULT-LENGTH:0
X-MOZILLA-RECUR-DEFAULT-INTERVAL:0
DTSTART:20060417T200000Z
DTEND:20060417T210000Z
DTSTAMP:20060413T193416Z
END:VEVENT
END:VCALENDAR

I discovered this when importing iCalendar files. After importing a iCalendar file the times are shown correctly in Calender. But when exporting them to vCalendar, the times are wrong. The iCalendar -> vCalendar is independent of the UT setting. Maybe this is a different bug?
> PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.0//EN
That shows you're using an older copy of Sunbird/Calendar.  Newer copies don't even respect this preference, but instead you get the times with lovely timezone data attached.  The UTC preference was a stop-gap measure when older versions used to only use floating timezones.

This bug is, accordingly, probably invalid.
I'm using the plug-in version 0.2.0.2006011612-cal. 
I noticed that in Sunbird version 0.3a1 the vCalendar export no longer exist. 
Is that option no longer available in Sunbird/Calendar?
From the calendar website <http://www.mozilla.org/projects/calendar/download.html#experimental_stable>:

Stable builds are based on the one-year old code from Sunbird 0.2. This code was well tested and those builds are recommended for those users, that are satisfied with the state of the Calendar extension for Firefox or Thunderbird 1.0. Please be aware that no new features have been developed for these builds and we do not accept bug reports for these builds.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
The bugspam monkeys have struck again. They are currently chewing on default assignees for Calendar. Be afraid for your sanity!
Assignee: base → nobody
You need to log in before you can comment on or make changes to this bug.