Skip to content

Issues with dates #14251

@aerni

Description

@aerni

Preface

I'm running into really weird behaviors with dates. Likely related to the new timezones changes. I'm not sure if these are unrelated issue or not.

I'm upgrading from Statamic 5 where the timezone was set to Europe/Zurich. My own Mac system settings timezone is the same. So the displayed date in the CP should match what's saved to file since it's the same timezone. These are my settings:

// app.php
 'timezone' => 'Europe/Zurich',

// system.php
'display_timezone' => 'Europe/Zurich',
'localize_dates_in_modifiers' => true,

Issues

Time is changed when saving

Every time I save an entry, the date is moves up by an hour when reloading the page. This can be best observed by enabling the time on the date fieldtype.

CleanShot.2026-03-13.at.16.17.44.mp4

Entry is displayed in the wrong date

The calendar view shows entry in a different date than what they were saved in.

Date field with enabled time:

CleanShot.2026-03-13.at.16.22.41.mp4

Date field with disabled time: Notice how the date is 3/13/2025 at 12 AM. And when saving it moves to 3/12/2025 at 11 PM and the entry still shows in the same date in the calendar.

CleanShot.2026-03-13.at.16.32.37.mp4

Collection overview

The overview shows the same entries as published and scheduled at the same time.

Image

How to reproduce

  1. Create a dated collection
  2. Save the entry
  3. Notice how the time shifts

Logs

Environment

Environment
Application Name: autonomiesuisse
Laravel Version: 12.54.1
PHP Version: 8.4.18
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
URL: autonomiesuisse.test
Maintenance Mode: OFF
Timezone: Europe/Zurich
Locale: de

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

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/assets: LINKED

Locales
Installed: de, en, fr, it
LaravelLang\Actions\Plugin: 1.12.0
LaravelLang\Attributes\Plugin: 2.15.4
LaravelLang\HttpStatuses\Plugin: 3.12.1
LaravelLang\Lang\Plugin: 15.28.5
LaravelLang\MoonShine\Plugin: INCORRECT
LaravelLang\StarterKits\Plugin: 1.9.0
Locales Version: 2.10.0
Protected: de, en
Publisher Version: 16.7.1

Livewire
Livewire: v4.2.1

Statamic
Addons: 6
Sites: 3 (Deutsch, Français, Italiano)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.6.2 PRO

Statamic Addons
aerni/advanced-seo: 3.0.0-alpha.1
aerni/livewire-forms: 10.1.0
aerni/social-links: 3.3.0
jacksleight/statamic-bard-texstyle: 4.0.2
marcorieser/statamic-livewire: 5.2.1
thoughtco/statamic-cache-tracker: 2.3.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions