Closed Bug 1593537 Opened 5 years ago Closed 4 years ago

Lightning's Today Pane "Mini-Month" dates are wrongly aligned with days of week

Categories

(Calendar :: Calendar Frontend, defect)

Lightning 71
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 72.0

People

(Reporter: ronan.jouchet, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

  1. Using Tb 71.0b2-20191030211447 with bundled Lightning 71.0b2
  2. View -> Today Pane -> Show Today Pane, Show Mini-Month
  3. In Preferences -> Calendar, set "Start the week on" to Monday
  4. Look at the Mini-Month
  5. Click the "Go to today" button (the circle at the top right of the Mini-Month)

Actual results:

Lightning incorrectly the Mini-Month matrix, mis-aligning days of week (Monday to Sunday) with dates (1, 2, 3, ... 31).

For example, today is Sunday November 3 but, in the Mini-Month widget, today appears as Sunday November 2! It feels like Lightning is confused about Monday as first day of week, maybe? See attached screenshot.

Also, if I click on "Go to today" (the circle button at the top-right of the Mini-Month widget), Lightning incorrectly focuses tomorrow! (the incorrect "Monday 3 Nov")

Expected results:

Lightning should render a correct Mini-Month.

Additional data point: fiddling with the current month and coming back to Today fixes / works around the issue. So,

  1. Launch Thunderbird. β†’ Mini-month is broken, with 1day mis-alignment between days and dates
  2. Click One Month Forward (the arrow at the next of the current month, atop the mini-month)
  3. Click Go To Today β†’ Mini-month is now fixed, properly aligned between days and dates.

Bug still reproducible in Tb 71.0b3-20191113091023 and Lightning 71.0b3

Bug still reproducible in Tb 71.0b4-20191125214250 and Lightning 71.0b4

Confirmed, I see this too with trunk: today, Saturday the 30.11. is shown in the Sunday column. This happens only with Monday as start of week day.

What I've also observed is, that when I change the start day, the week day column in the minimonth is immediately updated but not the dates itself.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(paul)
Flags: needinfo?(geoff)

Confirmed for Thunderbird Version 71.0b4 Build ID 20191125214250.

It would be good to see this fixed soon since it could lead to some problems getting to, or planning, events on the wrong day.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Flags: needinfo?(paul)
Flags: needinfo?(geoff)
Regressed by: 1585237

Appears to be my fault. Sorry about that.

Attachment #9112797 - Flags: review?(paul)
Attachment #9112797 - Flags: approval-calendar-beta?(paul)
Comment on attachment 9112797 [details] [diff] [review]
1593537-minimonth-update-1.diff

Review of attachment 9112797 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, confirmed that it fixes the problem.
Attachment #9112797 - Flags: review?(paul)
Attachment #9112797 - Flags: review+
Attachment #9112797 - Flags: approval-calendar-beta?(paul)
Attachment #9112797 - Flags: approval-calendar-beta+
Keywords: regression

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/bb6662974cc8
Update minimonths when the start of week pref or the week numbers pref changes; r=pmorris

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

73 needed.

Flags: needinfo?(philipp)
Target Milestone: --- → 72
Flags: needinfo?(philipp)
Target Milestone: 72 → 73

Confirmed fixed in Tb 72.0b2-20191212014636 + Lightning 72.0b2.
Thanks!

Geoff, should a similar patch be applied to force an update of the Events listview when a calendar event is added at a particular date picked in the Mini-Month?

STR below and GIF attached, pls tell me if I should I create a new bug.

  1. Click a day in the Mini-Month, say 2019-12-18.
  2. The "Events listview" (the list below the Mini-Month, listing events for that particular day) shows the events for that day. All good so far.
  3. Click "New Event", fill event info leaving the (pre-selected) currently active date (2019-12-18), save.

β†’ Expected: Events listview listing events for 2019-12-18 should update with the new event created at that date
β†’ Actual: Events listview does not update, failing to list the event just added.
Workaround A forcing a listview update: collapse/expande the day in the Events list view
Workaround B forcing a listview update: click another day in the Mini-month and re-click the day of the new event

Flags: needinfo?(geoff)

You should definitely file a new bug. As a general rule, one issue per bug.

I think I can see why that might happen if there's been a timezone change, otherwise I'm not really sure at this stage.

Flags: needinfo?(geoff)

(In reply to Geoff Lankow (:darktrojan) from comment #13)

You should definitely file a new bug. As a general rule, one issue per bug.

I think I can see why that might happen if there's been a timezone change, otherwise I'm not really sure at this stage.

Alright, filed Bug 1605601 - "Newly-created event fails to appear in the Events sidebar listview"

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: