Skip to content

Add 24-hour clock option for flight time inputs#151

Open
EricGrill wants to merge 1 commit intopbogre:mainfrom
EricGrill:feat/24-hour-clock
Open

Add 24-hour clock option for flight time inputs#151
EricGrill wants to merge 1 commit intopbogre:mainfrom
EricGrill:feat/24-hour-clock

Conversation

@EricGrill
Copy link

Summary

  • Adds a new use24HourFormat setting to allow users to toggle between 12-hour (with AM/PM) and 24-hour time formats
  • Creates a new TimeInput component that conditionally renders either a native time input (24-hour mode) or a time input with AM/PM selector (12-hour mode)
  • Integrates the new TimeInput component into the New Flight and Edit Flight forms
  • Adds a toggle in Settings under the Customization section

Closes #15

Test plan

  • Verify the "Use 24-hour time format" checkbox appears in Settings > Customization
  • With 24-hour format disabled (default), verify time inputs show AM/PM selector
  • With 24-hour format enabled, verify time inputs use native 24-hour format
  • Create a new flight with times in both modes and verify they are saved correctly
  • Edit an existing flight's times in both modes and verify changes are saved correctly
  • Verify the setting persists across page reloads (stored in localStorage)

🤖 Generated with Claude Code

Add a new setting to toggle between 12-hour and 24-hour time formats.
When 12-hour mode is selected (default), time inputs show an AM/PM selector
alongside the time picker. The value is stored in 24-hour format internally.

Closes pbogre#15

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow 24-hour clock for flight creation inputs

1 participant