neos-ui icon indicating copy to clipboard operation
neos-ui copied to clipboard

Date picker is one day off

Open Discostu36 opened this issue 2 years ago • 8 comments

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

  1. Add a date property to a configuration yaml
  2. 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.

image

image

Affected Versions

Neos: 8.0.2

UI: 8.0.1

Discostu36 avatar Sep 28 '23 08:09 Discostu36

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?)

bwaidelich avatar Sep 28 '23 10:09 bwaidelich

@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?

Sebobo avatar Sep 28 '23 10:09 Sebobo

I can't do an update at the moment, but the timezone is Europe/Berlin.

Discostu36 avatar Sep 28 '23 12:09 Discostu36

I just tested the DateTimerPicker on Version 8.3, and I can't reproduce the bug with one day off.

Alvadda avatar Mar 13 '24 12:03 Alvadda

Thanks for the update, closing this one for now. Feel free to re-open/comment if the issue re-occurs

bwaidelich avatar Mar 13 '24 12:03 bwaidelich

hang on, sorry, @Discostu36 can you still reproduce this?

bwaidelich avatar Mar 13 '24 12:03 bwaidelich

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.

Discostu36 avatar Mar 13 '24 13:03 Discostu36

Duplicate of #2467

Benjamin-K avatar Mar 29 '24 14:03 Benjamin-K