Closed Bug 289725 Opened 20 years ago Closed 20 years ago

day view initially does not show items before current time [trunk]

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gekacheka, Assigned: mostafah)

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050406 Firefox/1.0.3
Build Identifier: trunk

When first starting sunbird, day view does not show any items before the current
time.  Long events than span the current time are shown starting at the current
time.



Reproducible: Always

Steps to Reproduce:
1. Create an event "longEvent" from 01:00-23:00 today
2. go to day view
3. exit sunbird
4. restart sunbird

Actual Results:  
"longEvent" starts displaying at the current time.

Expected Results:  
"longEvent" starts displaying at 01:00
Keywords: regression
(patch -l -p 2 -i file.patch)

Problem is that refreshEvents was calling getSelectedDate but was not zeroing
the time of day.  When calendar first starts, the selected time is now.

This patch zeros the time of day before using it as the start of the day.

(The time of day is significant for other uses, such as creating a new event,
so it is not appropriate to change getSelectedDate to zero the time, at least
not without providing an alternative and changing all the callers that depend
on the time.)
Attachment #180213 - Flags: first-review?(mvl)
Attachment #180213 - Flags: first-review?(mvl) → first-review+
checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: