Closed Bug 361560 Opened 18 years ago Closed 18 years ago

Weekly layout: Sunday of previous week displayed in current week

Categories

(Calendar :: Printing, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: jminta)

Details

Attachments

(1 file)

Weekly layout: Sunday of previous week displayed in current week

Steps to Reproduce:
1. Start Sunbird with clean profile
2. Set First day of the week to Monday
3. Select 'File -> Print...' and choose the 'Weekly Planner layout
4. Check preview

Actual Results:
Output shows Monday 20-Nov-2006 to Saturday 25-Nov-2006 followed by Sunday 19-Nov-2006. The next week shows Monday 27-Nov-2006 to Saturday 02-Dec-2006 followed by Sunday 26-Nov-2006.

Expected Results:
Output shows Monday 20-Nov-2006 to Sunday 26-Nov-2006 in chronological order.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20061122 Calendar/0.4a1 - Build ID: 2006112207
Attached patch pay attention to prefs — — Splinter Review
This patch makes us pay attention to the default starting day of the week.  We have to be a bit careful, because the format is hardcoded to start with monday, but using .weekday rather than i should be sufficient to do that.
Assignee: nobody → jminta
Status: NEW → ASSIGNED
Attachment #246546 - Flags: first-review?(lilmatt)
Comment on attachment 246546 [details] [diff] [review]
pay attention to prefs

r=lilmatt
Attachment #246546 - Flags: first-review?(lilmatt) → first-review+
Attachment #246546 - Flags: second-review?(mvl)
Comment on attachment 246546 [details] [diff] [review]
pay attention to prefs

r2=mvl
Attachment #246546 - Flags: second-review?(mvl) → second-review+
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
verified with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061207 Calendar/0.4a1
Status: RESOLVED → VERIFIED
Whiteboard: [litmus testcase wanted]
This only works for the first week being shown. For the second and following weeks this fails worse than before, see Bug 361565 Comment #3 for full test results.
Flags: in-litmus?
Whiteboard: [litmus testcase wanted]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: