yuriy
(Yuriy Kurant)
23. Juni 2025 um 13:46
25
Ich habe zwei zusammenhängende PRs:
main â better-format-dates
opened 10:37AM - 13 Jun 25 UTC
This PR overhauls the way event dates are rendered by applying context-aware for⌠matting rules:
* Single-day events only show times when appropriate, hiding â12:00 AMâ for events without `endDate`.
* Multi-day ranges omit redundant parts (e.g. for the current year) and include weekday/month/day when needed.
### Tests added
* Weekday-only ranges (e.g. âFriday â Mondayâ)
* Same-week and same-month spans (omitting year)
* Cross-month and cross-year spans (including year where needed)
* `Today/Yesterday/Tomorrow` labels with time ranges
* Same-day events showing only time ďżź
### Impact
* Improves readability of event dates across the app
* Reduces visual noise by hiding redundant date/time fragments
* Ensures consistency with user expectations around relative dates
### Things to clarify
* Relative labels (`Yesterday, Today, Tomorrow`) replace literal dates for nearby days.
* Timezones are only shown when `showLocalTime` is toggled.
### Discussion
https://meta.discourse.org/t/new-calendar-feature-show-local-time/368608/
main â ux/local-date-builder-improvements
opened 06:52PM - 20 Jun 25 UTC
@nat , ich beziehe dich mit ein, da du vor Jahren an diesem Feature gearbeitet hast:
main â date-today
opened 10:08AM - 06 Oct 22 UTC
Essentially, introducing this change.
Saturday at 2:50 PM -> Saturday at 4:38⌠PM
becomes
Saturday at 2:50 PM -> 4:38 PM (Singapore)
Also, the displayed dates are shortened when the standalone date
is within two days. So despite the 'from' and 'to' date being the
same day, it may show 'Saturday' for 'from', and the specific date
for the 'to'. This corrects the behaviour. So if the current date and
time is Thursday 5PM, the 'from' date below is within 2 days, but
the 'to' date is not.
Saturday at 2:50 PM -> 8 October 2022 at 9:38 PM
becomes
Saturday at 2:50 PM -> 9:38 PM
committed 03:23AM - 12 Oct 22 UTC
In welchen Fällen sollten wir einen Zeitzonennamen in Klammern nach dem von/bis-Datum/Uhrzeit anzeigen?
Was sind die Erwartungen fĂźr die Anzeige: Wochentagsname Montag...Sonntag oder Gestern/Heute/Morgen?
Ich wĂźrde mich fĂźr Folgendes entscheiden:
Gestern/Heute/Morgen: fĂźr -1 Tag<-Heute->+1 Tag
Montag...Sonntag: innerhalb der aktuellen Woche oder -3 Tage<-Heute->+3 Tage
Das Vorhandensein der Uhrzeit sollte kein entscheidender Faktor dafĂźr sein, welche der beiden obigen Optionen angezeigt wird, wie es jetzt der Fall ist:
keine Uhrzeit: Montag...Sonntag
mit Uhrzeit: Gestern/Heute/Morgen
2 âGefällt mirâ