neos-ui
neos-ui copied to clipboard
Date picker is one day off
Description
I have a date picker for an article:
'publishingDate':
type: DateTime
defaultValue: 'today midnight'
ui:
label: 'Veröffentlichungs-Datum'
inspector:
group: 'ah'
editorOptions:
format: 'd.m.Y'
But it doesn't work correctly, the date is always one day off.
Unfortunately, I don't know in which version this bug first appeared.
Steps to Reproduce
- Add a date property to a configuration yaml
- Select a date with the date time picker in Neos CMS
Expected behavior
The date picked matches the date selected.
Actual behavior
The date is always one day off. So, for example, if I click on August 10th, the value is set to August 11th.
Affected Versions
Neos: 8.0.2
UI: 8.0.1
Thanks for reporting: We should double-check whether the issue is really a regression with 8.x and did not occur with 7.3 (or did you already test that?)
@Discostu36 thx for the bug report. Can you update to the most recent version of the 8.0 branch and or 8.3, as I see that you are on a quite old version.
And can you check what your timezone is set to in the php.ini?
I can't do an update at the moment, but the timezone is Europe/Berlin.
I just tested the DateTimerPicker on Version 8.3, and I can't reproduce the bug with one day off.
Thanks for the update, closing this one for now. Feel free to re-open/comment if the issue re-occurs
hang on, sorry, @Discostu36 can you still reproduce this?
I can still reproduce this in 8.0.2, I don't know when I will find the time to update to 8.3. I will come back if the problem persists after update.
Duplicate of #2467