Open
Description
Bug description
When the date
field is localized and the value is different between the localizations, the state of the Date fieldtype seems to get out of sync when you switch localizations.
CleanShot.2024-08-22.at.17.55.00.mp4
Possibly related to #3440 & #9147.
How to reproduce
Assuming you've already setup multiple sites & configured a collection with two (or more) sites....
- Enable "Publish Dates" on the collection
- Edit the blueprint and make the
date
field localizable - Create an entry in Site A - give it a date.
- Localize the entry in Site B - give it a different date.
- Save & refresh the page.
- On Site A, the date will be correct.
- Switch to the Site B localization, the date will be Site A's date.
- Switch back to the Site A localization, the date will be Site B's date.
Logs
No response
Environment
Environment
Application Name: Duncan's Wonderful Sandbox
Laravel Version: 11.19.0
PHP Version: 8.3.10
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: sandbox.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: null
Cache: redis
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: redis
Session: file
Statamic
Addons: 0
Sites: 2 (English, German)
Stache Watcher: Enabled
Static Caching: Disabled
Version: cd5e263bce2d6259c1fd17398c7a880099496637 PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
No response