plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
246 stars 186 forks source link

Datepicker / Timezone inconsistencies #2074

Closed tomgross closed 1 year ago

tomgross commented 7 years ago

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

There are several datepicker / timezone inconsistencies in Plone 5.1b3 (espacially in folder_contents)

    • [ ] The datetime localization is not respected in the folder contents version of the datepicker. It IS respected on the edit page. grafik
    • [ ] Timezone offset is not handled, if browser TZ is not UTC and date is changed in folder_contents. It is correctly handled on edit page.

As a fix for 2. I trieds etting a custom timezone. I set a custom timezone in the resource registry {"date": {"selectYears": 200}, "time": {"interval": 5 }, "timezone": {"data": [{"id":"Europe/Berlin","text":"Europe/Berlin"}]}} like documented in the mockup build.

This fixed the timezone issue in folder_contents BUT lead to following even more severe issue:

    • [ ] Datepicker is no longer displayed if timezone is set in datepicker options and it is impossible to change the date.

grafik

The JavaScript console shows an ugly traceback:

grafik

What I did:

For 2.

For 3.

What I expect to happen:

What actually happened:

What version of Plone/ Addons I am using:

Plone 5.1b3 (minimalplone5)

jensens commented 6 years ago

still applies in RC1 (coredev of today)

jensens commented 6 years ago

see also #1298

jensens commented 1 year ago

I close the issue, because it addresses a Plone version that is no longer supported. If you think this is wrong please reopen the issue and assign a matching milestone.