-
-
Notifications
You must be signed in to change notification settings - Fork 609
Closed
Labels
Description
Bug description
The Time fieldtype in the Control Panel always displays in 12-hour format with AM/PM, even though all relevant locale settings indicate a 24-hour format should be used. Before upgrading to Statamic6 the display was correct.
Environment:
- Statamic 6
APP_TIMEZONEand Statamic config timezone:Europe/Zurich- Multisite with
localeset tode_CH - Browser locale: de-CH
- OS language: German (Switzerland)
Expected behavior:
Time fieldtype should respect the system/browser/site locale and display in 24-hour format for European locales like de_CH.
Additional context:
Switzerland and most European countries use 24-hour time format by convention. The fieldtype appears to ignore all locale settings (Laravel, Statamic site config, browser, OS).
How to reproduce
- Set
APP_TIMEZONE=Europe/Zurichin.env - Configure Statamic multisite with
localeset tode_CH - Set browser and OS to German (Switzerland)
- Create/edit an entry with a Time fieldtype
- Observe AM/PM format instead of 24h
Logs
Environment
Environment
Application Name: Rast
Laravel Version: 12.49.0
PHP Version: 8.3.28
Composer Version: 2.9.3
Environment: local
Debug Mode: ENABLED
URL: rast.test
Maintenance Mode: OFF
Timezone: UTC
Locale: de
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: null
Cache: redis
Database: mysql_rast
Logs: stack / single
Mail: smtp
Queue: database
Session: file
Storage
public/glide: NOT LINKED
public/storage: NOT LINKED
Locales
Installed: de, en, fr
LaravelLang\Actions\Plugin: 1.12.0
LaravelLang\Attributes\Plugin: 2.15.1
LaravelLang\HttpStatuses\Plugin: 3.12.0
LaravelLang\Lang\Plugin: 15.28.1
LaravelLang\MoonShine\Plugin: INCORRECT
LaravelLang\StarterKits\Plugin: 1.8.0
Locales Version: 2.10.0
Protected: de, en
Publisher Version: 16.7.1
Sentry
Enabled: YES
Environment: local
Laravel SDK Version: 4.20.1
PHP SDK Version: 4.19.1
Release: NOT SET
Sample Rate Errors: 100%
Sample Rate Performance Monitoring: 0%
Sample Rate Profiling: 0%
Send Default PII: DISABLED
Statamic
Addons: 1
Sites: 2 (de, fr)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.2.2 PRO
Statamic Addons
rias/statamic-redirect: 4.0.1Installation
Existing Laravel app
Additional details
No response
Reactions are currently unavailable