bolt / core

🧿 Bolt 5 core
https://boltcms.io
MIT License
542 stars 159 forks source link

Saving an item moves the published time on each save #3470

Open christiaan opened 1 year ago

christiaan commented 1 year ago

publishedAt time jumps 2 hours ahead of what was entered.

Details

Question Answer
Relevant Bolt Version 5.1.24
Install type Composer install
BC Break ?
PHP version 7.4
Web server Symfony CLI (symfony serve)

Reproduction

Bug summary

When I create a new item the publishedAt Time is the correct time. However when I save the item again the publishedAt Time jumps ahead 2 hours (maybe because I'm in utc +2?) I have this in my config.yaml timezone: Europe/Amsterdam

Expected result

I expect the publishedAt time not to change when I save an item and did not modify the publishedAt field.

Actual result

The time jumps ahead 2 hours relative to the date/time in the publishedAt field.