Skip to content

Date fields with 12 hour time flip-flopping between AM/PM on change #15481

Description

@simonworkhouse

Bug description

The day period (AM/PM) changes on update for date fields displayed in a locale with a 12 hour time format which also have a display timezone set that is different to the browser's default timezone.

This is related to the previous issue #14249 which was addressed by updating reka-ui in the PR #14259. I have a very basic example test and a potential fix implemented but will probably not be able to report the bug until next week unovue/reka-ui@v2...simonworkhouse:reka-ui:bugfix/day-period-incorrectly-handled

Screencast.from.2026-09-18.17-19-45.webm

How to reproduce

Create a date field with time that displays time in a timezone offset to yours and change the hour input until the bug triggers.

Logs

Environment

Environment
Laravel Version: 13.26.1
PHP Version: 8.4.3
Composer Version: 2.10.2
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: redis
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Scout: elastic
Session: database

Storage
public/product-images: LINKED
public/storage: LINKED

Statamic
Addons: 4
License Key: Set
Sites: 1
Stache Watcher: Disabled
Static Caching: varnish
Version: 6.31.0 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.17.0
mitydigital/iconamic: 3.0.0
statamic-rad-pack/runway: 9.6.2
statamic/eloquent-driver: 5.11.0

Statamic Eloquent Driver
Addon Settings: file
Asset Containers: file
Assets: eloquent
Blueprints: file
Collection Trees: file
Collections: file
Entries: file
Fieldsets: file
Form Submissions: file
Forms: file
Global Sets: file
Global Variables: file
Navigation Trees: file
Navigations: file
Revisions: file
Sites: file
Taxonomies: file
Terms: file
Tokens: file

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Activity

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

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