[Bug]: Scheduled task "Run at" time picker ignores the Time format setting (always 12-hour)#27233

opened14d agobyCcarlulsoe

Before submitting

  • I searched existing issues and did not find a duplicate. #19930 reports the same root cause for the custom snooze picker only; this covers the scheduled-task editor (and the snooze presets settings).
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. In Settings → Time format, select 24-hour.
  2. Open Settings → Scheduled tasks, create or edit a task, and choose a fixed schedule.
  3. Look at the Run at field.

Expected behavior

Run at follows the configured Time format, for example 00:00 when 24-hour is selected.

Actual behavior

Run at shows a 12-hour AM/PM field (12:00 AM) even when 24-hour is selected.

Impact

Minor bug or occasional failure

Additional context

The Run at field in apps/web/src/components/settings/ScheduledTasksSettings.tsx (~L1708) is a native <Input type="time" nativeInput>. Chromium/Electron chooses its hour cycle from the browser locale, so the app's timestampFormat setting has no effect on it.

Two other places use a native type="time" input in the same way:

  • apps/web/src/components/CustomSnoozeDialog.tsx (#19930)
  • apps/web/src/components/settings/SnoozePresetsSettings.tsx

One fix could cover all three: a shared time input that takes its 12/24-hour choice from resolveHour12(timestampFormat) in apps/web/src/timestampFormat.ts. The usage charts already get their hour format from that function.