Closed Bug 1093058 Opened 10 years ago Closed 10 years ago

[Calendar] update the way all day events are calculated

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S8 (7Nov)

People

(Reporter: mmedeiros, Assigned: mmedeiros)

References

Details

Attachments

(1 file)

We need to change the way we calculate "all day" events.. right now it only considers as an "all day" event if it starts at 00:00 and ends at 00:00 of a future date, and only if the ms difference between start-end is a round number of days (during DST change that isn't true, the day doesn't have 24h). I think the "all day" calculation should take into consideration a "base date".

Steps to reproduce:

 - create an event that spans thru multiple days;
 - check MonthsDay, Week and Day views;

Expected: Event that started before 00:00 of selected day and ends after 23:59 should be listed as "all day" event.

Actual: Event is displayed together with regular events.
Assignee: nobody → mmedeiros
Target Milestone: --- → 2.1 S8 (7Nov)
Comment on attachment 8516254 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25781

A couple questions on GH but mostly looks great. Thanks for updating test cases also :)
Attachment #8516254 - Flags: review?(gaye) → review+
landed on master: https://github.com/mozilla-b2g/gaia/commit/d02e2bba29f08bd7d97f57ccc2aea23353a1d8be
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: