fix: address utility widget review

This commit is contained in:
ajnart committed 2026-08-20 15:33:28 +02:00
1 parent 52d96505a3
commit e3475d3efe
17 files changed
+138 -73

No files matched your search

+4 -2
View File
@@ -222,11 +222,13 @@ const ClockTime = ({
if (!entry.zonedTime) return null;
let formattedTime = formatLocalizedTime(now, locale, {
hour12: clockTimeFormatUses12Hours(options.customTimeFormat, options.is24HourFormat),
includeSeconds: clockTimeFormatShowsSeconds(options.customTimeFormat),
includeSeconds: clockTimeFormatShowsSeconds(options.customTimeFormat, options.showSeconds),
timeZone: entry.timeZone,
});
if (primary) {
formattedTime = entry.zonedTime.format(resolveClockTimeFormat(options.customTimeFormat, options.is24HourFormat));
formattedTime = entry.zonedTime.format(
resolveClockTimeFormat(options.customTimeFormat, options.is24HourFormat, options.showSeconds),
);
}
const accessibleDate = formatLocalizedDate(now, locale, {
dateStyle: "medium",