Skip to content

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

Closed

Description

@carlulsoe

Before submitting

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:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions