Skip to content

feat: add configurable 12-hour and 24-hour time formats#812

Open
anonymoususer72041 wants to merge 7 commits into
opencats:masterfrom
anonymoususer72041:feature/configurable-time-format
Open

feat: add configurable 12-hour and 24-hour time formats#812
anonymoususer72041 wants to merge 7 commits into
opencats:masterfrom
anonymoususer72041:feature/configurable-time-format

Conversation

@anonymoususer72041

Copy link
Copy Markdown
Contributor

Summary

This PR adds a configurable site-wide time format setting that allows OpenCATS installations to use either 12-hour or 24-hour time display.

This wires the existing site.time_format_24 setting into site localization, session handling, localization settings, the first-run wizard and the installer. It also applies the configured time format across activity display and editing, calendar forms and settings, email template date/time replacement and other user-facing date/time output where appropriate.

The default behavior remains unchanged: existing installations continue to use the 12-hour format unless the 24-hour format is explicitly selected.

Motivation

This improves OpenCATS internationalization by allowing installations to use the time format that matches their locale and users' expectations.

A large share of countries commonly use the 24-hour time format. Supporting both 12-hour and 24-hour formats makes OpenCATS more suitable for international deployments while preserving the existing default behavior for users who prefer the 12-hour format.

@anonymoususer72041 anonymoususer72041 requested a review from RussH June 16, 2026 09:42
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.

1 participant