Skip to content

Entry date gets set back one day after saving and reloading the entry #14455

@roosvr

Description

@roosvr

Bug description

In my blog collection I have a (published) date field. When I set this date, save the entry and reload the page, the date will be one day before the day I set.
Issue seems similar to #14251

How to reproduce

  • I created an entry in a collection which has published dates turned on
  • I changed the date to a date to my likings
  • I saved the entry
  • I refreshed the page
  • The published date is now one day earlier

Logs

Environment

Environment
Application Name: CysoCloud
Laravel Version: 12.54.1
PHP Version: 8.4.16
Composer Version: 2.8.3
Environment: local
Debug Mode: ENABLED
URL: statamic.fuga.io
Maintenance Mode: OFF
Timezone: Europe/Amsterdam
Locale: en

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

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

Storage
public/storage: NOT LINKED

Statamic
Addons: 2
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.10.0 PRO

Statamic Addons
alt-design/alt-sitemap: 1.4.0
statamic/ssg: 4.1.0

Installation

Fresh statamic/statamic site via CLI

Additional details

Statamic version: 6.10.0
PHP version: 8.4

// app.php
 'timezone' => 'UTC',

// system.php
'display_timezone' => null,
'localize_dates_in_modifiers' => true,

My actual time zone where I am in is Amsterdam (GMT+2).
Not sure if my settings are okay like this, but I read somewhere that I can leave it on UTC if I have existing date fields. And it wil be translated to my own timezone by the time selected on my laptop.

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