mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-06 08:02:04 +00:00
Times were fixed to a 24-hour clock in every language and date order. A Time format setting beside the date format picks the clock. 24-hour stays the default; 12-hour writes the interface language's own day-period words; Automatic takes the hour cycle Intl reports for the browser's first language tag, falling back to the interface locale. The clock composes with every date order, and Year-Month-Day writes its day period in the interface language. format.ts resolves the clock in one place for localTime, localMinute, localTimeFormat and the new localClockFormat, which the chart axes and the log heatmap now use in place of their own h23 formatters. The choice is stored in doona-time-format and shows up in the search dialog. A 12-hour time is longer, so a source card's expiry takes the width it needs (a row of its own when wider than half the card), the log and event time columns are wider, and the heatmap axis hides its middle mark where a longer time would leave less than 16px between marks.
468 B
468 B
Added
- A time format setting next to the date format. 24-hour is the default; 12-hour writes AM or PM in the interface language's own words (4:27 PM, 下午4:27); Automatic follows the clock of the browser's region. It applies to every time on a page, including the chart axes and the log heatmap, and composes with each date format. Source cards, the log and event time columns and the log heatmap give a 12-hour time the room it needs instead of cutting it short.