-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 3496 #3498
Issue 3496 #3498
Conversation
This isn't highlighting the last day of the week, last day of the month, and highlights the day before the date in date mode. I restarted the memcached, fpm and apache on both servers to try to make sure the proper code was being served. Unless I just really missed something in doing the change on my end this switches to the opposite problem (UTC) being a day ahead of us at times. Could be changing to a noon vs midnight as I did in my change helped as well, but this doesn't seem to be a solution. |
What do you have |
Could you post a screenshot of what you are seeing please? |
Also, could you post your copy of datepickr.js.php that you are using please? |
@William-Haller - just wondering if you've had a chance to look at my comments? |
The following information reflects the timezone details as seen in the javascript captured via console.log for week range
for month range
Not sure where in edit area you would want the timezone to be printed - I'll do that if you want - but Mountain Daylight and 360 minute is the correct offset. A change to 18:00:00 MDT is correct for midnight GMT. Here is a list of the references to $timezone in the codebase.
Comparing this with the distributed code, the only difference is my initial setting in config.inc.php. This variable is not set in each specific site config. Had e-mailed this to you on the 5th. Not sure what happened to it. |
Thanks. I'm interested in the timezone that you see when you edit the area in question. Login to MRBS as an admin, go to the Rooms page, select the area in question and click the Edit icon (little pencil). The config setting for timezone just sets the default timezone for new areas. I want to check that your area is actually on MDT and not some other timezone. Although you are seeing MDT in the JavaScript console, that timezone is determined by your browser or PC and not by MRBS. |
The timezone appears as Denver in that display, which would be correct. |
OK, thanks. Could you post a screenshot please of the problem you are seeing? Unfortunately I am unable to reproduce the problem, despite changing the timezone in my browser. The PR does fix a problem, but obviously not the problem you are seeing. |
Thanks. And could you also post the copy of datepickr.js.php that you are using please? Just to double-check that you are using the correct version. |
datepicker.zip |
Thanks. I can now reproduce the problem. I had to change my PC's timezone. It seems that changing the sensors in Chrome's development tools wasn't enough. |
OK, I can see the problem. Fix coming up later. |
I've now committed a further fix in 349ee9c. I had fallen foul of this quirk: "When the time zone offset is absent, date-only forms are interpreted as a UTC time and date-time forms are interpreted as local time. This is due to a historical spec error that was not consistent with ISO 8601 but could not be changed due to web compatibility." Could you test the latest datepickr.js.php code please? |
Works for me. Good work. |
Fix for Issue #3496