calIDateTime::normalize() dropping timezone info in lightning

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
14 years ago
13 years ago

People

(Reporter: pavlov, Unassigned)

Tracking

Details

(Reporter)

Description

14 years ago
var a =
Components.classes["@mozilla.org/calendar/datetime;1"].createInstance(Components.interfaces.calIDateTime);
a.nativeTime = 1114800300000000;
var b = a.getInTimezone("/mozilla.org/20050126_1/America/Los_Angeles");
dump(b);
b.minute += 15;
b.normalize();
dump(b);

This code, in xpcshell, dumps:
"2005/04/29 11:45:00 /mozilla.org/20050126_1/America/Los_Angeles"
"2005/04/29 12:00:00 /mozilla.org/20050126_1/America/Los_Angeles"

If you do the same code in lightning it gives:
"2005/04/29 11:45:00 /mozilla.org/20050126_1/America/Los_Angeles"
"2005/04/29 12:00:00 UTC"
Assignee: vladimir → nobody

Comment 1

13 years ago
WFM in current Lightning.
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.