Current time: 08-15-2020, 04:30 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display Date and Time of Test Result Section
03-19-2011, 03:27 AM
Post: #3
RE: Display Date and Time of Test Result Section
Ok, I've never been good at resisting peer pressure ;-)

I just spent some time working on the dates and I think I have things in pretty good shape (or at least as good as they are going to get). Support for Time Zones, locales, etc SUCKS on the web so there are a couple of caveats and there might be a little strange behavior but for the most part it should just work.

- All of the test results pages now include location, url, date and time in the title strings
- The header section now includes the test date/time right beneath the URL that was tested
- The test log dates and times should now be in your local time zone

The gotchas:

- Your time zone offset is only available to Javascript so I have to set it in a cookie (which means for it to work correctly you need to have javascript running and allow for the cookies). Not a big deal but something to be aware of.

- Since the only thing that is available to me is your offset from GMT at the time that you visit the page, it's possible that the times will be off by an hour from when the test actually ran if you are lucky enough to be in a part of the world that changes their clocks for daylight savings.

- I have some Javascript code that displays the date/time in the test header area that DOES properly deal with Daylight savings time as it was for the date being represented - which leads to the fun possibility that the time displayed on the page and the time in the page title could be off from each other by an hour.

- Most of the date formats are set by parsing your accept-languages header from your browser to try to present the dates in a format that you would expect to see. I can't guarantee that this will always work and you may end up with the standard (US) locale display.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Display Date and Time of Test Result Section - pmeenan - 03-19-2011 03:27 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)