View Full Version : Day of week/Date on home page do not agree...


Scott D.
08-25-1999, 08:37 PM
For example, right now it says "Wednesday, 26 Aug 1999". But Wednesday was the 25th.

small nit, but visible nonetheless.

Matt Daniels
08-26-1999, 07:45 AM
That date is generated by JavaScript and I'm not sure where it gets the date info from. It either pulls it from the server or from the users computer. Check the date on your computer and see if it's set right. I don't know why it would have shown you all the other correct info though, but not the actual date.

Matt

Scott D.
08-26-1999, 05:44 PM
<i>You have the following lines in your code:</i>

<b>
var theDate = new Date();
var gmtDate = theDate.toGMTString();
var arr = gmtDate.split(' ');
var theDay = theDate.getDay();
</b>

So the problem is that you are converting to GMT for the date, but not the day of the week. Make it consistent one way or the other, and it'll be fixed!

(I haven't thought how to do this, but it would probably be ideal if you showed the date based on EST, since that's where the forum postings are timestamped.)