So, I have worked on this task for a while, since the last week, I see it can be structured into three sections and one question:
- Avoid duplications and noisiness in from β to ranges:
- current year, no times (
00:00):- same week/month range:
Mon, Oct 6 β Fri, Oct 10||Mon, Oct 6 β Mon, Oct 20 - different months range:
Mon, Oct 6 β Thu, Nov 6
- same week/month range:
- current year, with times:
- same day range:
Mon, Oct 6 12:00 AM β 1:00 AM
- same day range:
- different years, no times:
Mon, Oct 6 β Tue, Jan 6, 2026
- current year, no times (
- Show local time based on checked checkbox (in OP)
- I observed some inconsistencies, when we display dates within range two days before and one day after today:
- with time:
Yesterday/Today/Tomorrow 8:00 PM - without time:
Monday...Sunday
- with time:
- Sometimes timezone is shown in the end of datetime:
Today 2:00 PM β 4:00 PM (UTC). Question: in which cases do we want to show timezone in brackets?