Closed
Bug 1082286
Opened 10 years ago
Closed 9 years ago
[icaljs] Date/Time Picker seems to have a timezone error
Categories
(Calendar :: ICAL.js Integration, defect)
Calendar
ICAL.js Integration
Tracking
(Not tracked)
RESOLVED
FIXED
3.9
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
(Keywords: regression)
Attachments
(2 files)
692 bytes,
text/plain
|
Details | |
1.12 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
In the Edit Event dialog, the date/time pickers show the time 13 hours in advance of their actual value. (My timezone is UTC+1300.) For example if I click New Event now, it should show 2014-10-14 15:00, but it shows 2014-10-15 04:00. This occurs with the icaljs backend, but not libical.
Comment 1•10 years ago
|
||
Which version of Thunderbird and Lightning do you use? Are there any messages in the log (ctrl+shift+j) when reproducing the issue?
Component: General → ICAL.js Integration
Comment 2•10 years ago
|
||
It seems that timezone support is completely broken with icaljs on 3.3.x. For attached pushlished event, with libical timezone offset is correctly applied if you are not in Eastern Standard Time, while icaljs just takes it as local time. Unfortunately, I had not error messages in the log when using icaljs.
Assignee | ||
Comment 3•10 years ago
|
||
I've just backed out bug 1063085 locally and this bug went away.
Blocks: 1063085
Comment 4•10 years ago
|
||
Thanks Geoff for cheking this. Bug 1063085 was alraedy the regression candidate. Can you please also provide your version of Thunderbird and Lightning?
Keywords: regression
Comment 5•10 years ago
|
||
When using Thunderbird builds older than 38.0a1 you might have to set the advanced preference "javascript.options.showInConsole" to "true" to get all error messages reported to console.
Assignee | ||
Comment 6•10 years ago
|
||
I'm still on Daily from 2014-09-22 due to bug 1081534, and I've just now tested Lightning from the same date; same problem.
Comment 7•10 years ago
|
||
Geoff, can you please re-test this with the next Daily build, now that bug 1081534 is fixed?
Assignee | ||
Comment 8•10 years ago
|
||
Yes, I still see this in 2014-12-09 Daily, with matching Lightning build.
Assignee | ||
Comment 9•9 years ago
|
||
Comparison with cal.floating() always returns false, therefore dateTimeToJsDate doesn't work as expected for floating dates.
Comment 10•9 years ago
|
||
Comment on attachment 8541035 [details] [diff] [review] 1082286-1.diff Review of attachment 8541035 [details] [diff] [review]: ----------------------------------------------------------------- r+ since it works well, but I wonder why the comparison doesn't work? In theory, there should only be one instance of cal.floating(), so comparing with the timezone property should be working. Either there are multiple globals involved, or the code to hold only one instance is broken. Maybe you can take a quick look into this?
Attachment #8541035 -
Flags: review?(philipp) → review+
Comment 11•9 years ago
|
||
Ah of course it may be related to that needinfo bug 909183 I have been successfully been procrastinating about for the past 5 months! I'll see if I can finally clear it, every time I looked at it I didn't have a good answer.
Assignee | ||
Comment 12•9 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] from comment #10) > r+ since it works well, but I wonder why the comparison doesn't work? In > theory, there should only be one instance of cal.floating(), so comparing > with the timezone property should be working. Either there are multiple > globals involved, or the code to hold only one instance is broken. Maybe you > can take a quick look into this? I wondered this too, and I figured it has something to do with this: > calDateTime.prototype = { > ... > get timezone() new calICALJSTimezone(this.innerObject.zone), That'd make them different objects and therefore unequal, wouldn't it?
Keywords: checkin-needed
Comment 13•9 years ago
|
||
Indeed it would, maybe we should cache this and only switch if the inner zone has changed?
Assignee | ||
Comment 14•9 years ago
|
||
https://hg.mozilla.org/comm-central/rev/0cc5f51af9e5
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 3.9
You need to log in
before you can comment on or make changes to this bug.
Description
•