Skip to content

Fieldtype Time Format is always set to AM&PM #13819

@FluLights

Description

@FluLights

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_TIMEZONE and Statamic config timezone: Europe/Zurich
  • Multisite with locale set to de_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).

Image

How to reproduce

  1. Set APP_TIMEZONE=Europe/Zurich in .env
  2. Configure Statamic multisite with locale set to de_CH
  3. Set browser and OS to German (Switzerland)
  4. Create/edit an entry with a Time fieldtype
  5. 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.1

Installation

Existing Laravel app

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions