getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.31k stars 168 forks source link

Wrong date saved when field type date is set to time: false #1518

Closed CydGoblin closed 5 years ago

CydGoblin commented 5 years ago

Describe the bug When you use the field type date with time: false it saves the wrong day. I saves the next day to the one you pick.

To Reproduce Steps to reproduce the behavior:

  1. Start with starterkit
  2. Edit the blue print for note. In the field type date, set the property time to false
  3. On the panel, change the date to Today and save
  4. Open the link to the note you modified. On the panel you see the right one, on the note post you see the next day. The .txt file for the note has the wrong date too.

Expected behavior The note post and .txt file should have the date picked on the panel, not the next day.

Screenshots Date set on panel: image

On the note post you see the next day image

Same in the .txt file image

Blueprint image

Kirby Version 3.0.2

Console output No errors in console

Desktop (please complete the following information):

CydGoblin commented 5 years ago

After more research looks like it was wrong configuration on my MAMP (date.timezone on ini.php) and coincidentally there was some issues on the real server when I tried to use to test it. Seems like It works fine now, but I'll report back if anything else happens.

distantnative commented 5 years ago

Please report back if you encounter the porblem again and reopen this issue then. Thank you!