The task "Due In" column sometimes shows an incorrect "0 days"
Categories
(Calendar :: Tasks, defect)
Tracking
(Not tracked)
People
(Reporter: pmorris, Assigned: pmorris)
References
Details
Attachments
(1 file, 1 obsolete file)
1.68 KB,
patch
|
Fallen
:
review+
Fallen
:
approval-calendar-beta+
|
Details | Diff | Splinter Review |
On current development builds, when a task's due date is:
- on the same day of the week as today, but a week or more apart
- is due later in the day than the current time (today)
then the "Due In" column incorrectly displays "0 days".
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
The code that generates the "Due In" column string is the "duration" method in "comm/calendar/base/content/calendar-task-tree.js", around line 360.
Assignee | ||
Comment 2•5 years ago
|
||
It turns out the duration object can be like { weeks: 1, days: 0 }
, so we have to convert weeks to days. For example:
6 day duration is like: { weeks: 0, days: 6 }
7 day duration is like: { weeks: 1, days: 0 }
8 day duration is like: { weeks: 0, days: 8 }
(The zeros are actually negative: -0
.)
Assignee | ||
Comment 3•5 years ago
|
||
Revised the comment to make it really clear what's going on.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/2a299189d890
Fix the "0 days" error in the task "Due In" column. r=philipp
Updated•5 years ago
|
Comment 5•5 years ago
|
||
TB 68 beta 4 / Cal 7.0 (well, just aligned that version with TB):
https://hg.mozilla.org/releases/comm-beta/rev/3355ea2d0afb1816d437f23dd53380dcc6d95926
Description
•