User tests: Successful: Unsuccessful:
Pull Request for Issue #17770 .
@infograf768 i think 3.x has some extra code for the user_utc compared to 2.x.
I think it's these lines:
joomla-cms/libraries/joomla/form/fields/calendar.php
Lines 247 to 248 in a444c14
We always read the input as UTC and convert it to server or user but the user submitted the date with their local timezone (most of the times the browser will have the timezone to the area that the user is living). There is the inconsistency...
this should run only when the code is coming from the db, for the data that comes from a form input we need to convert it to UTC. That will fix the problem
check #17770
Dates are set correctly
Dates are set correctly
No
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
The screenshot in #17770 explains how to test.
Basically, clear the start publishing date for an item, then close the calendar popup, then open the popup again and click on Today.
then look its status in the manager.
This is an old bug that been there for ever.
It is very rare to change the start publishing date to Today as it is set such by default when creating a new item. But it is not rare to set a Start Publishing date in the future, thus not remarking the error.
Someone may not remark the bug when the local computer time zone is set to UTC or UTC-#
Anyone will experience the bug when the local computer is set to UTC+#
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
rtc
RTC after two successful tests.
Actually, I think this issue is not a code issue. It happens because of a wrong user setting. For the calendar (and other date processing) and its UTC conversion to work properly, the user timezone obviously needs to be set to the timezone of the user. Otherwise the server will not know how to convert the datetime properly and it will off by some hours.
In my testing, I only could reproduce the issue when I had set my user timezone to a different than my real timezone "Zurich". Eg setting it to "New York" will produce the effect in my case because I input my local time but the server will interpret it as the time in New York and thus it will be 6 hours "later".
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-25 11:43:15 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
I have tested this item✅ successfully on 3f3d1a5
Great!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17823.