Page 1 of 1

Hilight Sunday while it is Saturday

PostPosted: Sat, 09 Jan 2016 21:42:29
by wittmeba
It's doing it again. Today is still Saturday Jan 09, 2016 but Calendar hilights Sunday. It did this before and again it is not a big deal but a little concern. Just very strange. Time zone is right too. I have rebooted, cleared cache, no help...

What time zone is this website set to use?

The page and my mouse over the clock/calendar bottom right on Windows.
http://i.imgur.com/YTzOHzT.jpg

Re: Hilight Sunday while it is Saturday

PostPosted: Sat, 09 Jan 2016 22:33:53
by AlanM
I suspect that the date set on the forum server is off by a day.
I'm seeing the same thing. And I set my computer clock with NIST.

Re: Hilight Sunday while it is Saturday

PostPosted: Sun, 10 Jan 2016 10:44:38
by wittmeba
Thank you, Alan. I was thinking either the date of the server or time zone it may be in.

I use http://time.is/

Re: Hilight Sunday while it is Saturday

PostPosted: Sun, 10 Jan 2016 11:58:13
by OakRidgeStars
The time and date on the server is correct. You can verify your time zone and DST settings in the User Control Panel > Board Preferences section.

Image

Re: Hilight Sunday while it is Saturday

PostPosted: Sun, 10 Jan 2016 13:44:11
by AlanM
Frankly, I don't understand HTML code well enough to tell from reading the source code for that User Control Panel page to establish whether or not it's displaying the server date and time or my local machine date and time.
I DO know that it is within 1 or 2 seconds of being identical to my computer's time.

The code for the calendar page is getting the text for the date from "http://vagunforum.net/viewcalendar.php"

Here's the line:
Code: Select all
<td colspan="3" class="month" align="center"><h2><b>Today is: Sunday, January 10th, 2016</b></h2><font style="font-size: 18px; font-weight:bold; color: #223300;">January, 2016</font></td>


One thought: Since we saw the problem late Saturday night it's possible somewhere in the server code it's grabbing the current date for GMT rather than GMT-5. Which I assume is the time zone for the server.
The way to check is to look at the calendar between 7PM and Midnight and see if it's a day ahead.

Re: Hilight Sunday while it is Saturday

PostPosted: Sun, 10 Jan 2016 20:07:51
by AlanM
OK, I am correct.
The Calendar program is using GMT date and time.
I was displaying the calendar page and hitting "reload".
At EDT 18:59 the calendar showed "Today is: Sunday, January 10th, 2016".
A few seconds after 19:00 I hit "reload" and this is what is now displayed:
"Today is: Monday, January 11th, 2016"
Five hours early.
The computer that is handling the calendar is set for GMT date and time.
No doubt about it.