8

When a page is auto refreshed, or it updates itself on Stack Overflow, the shown time is wrong. It always shows "12 hours ago," instead of actual time. If I refresh the page manually, it shows the time correctly, as you can see in the screenshot.

screenshot

screenshot of this page

I am using Google Chrome running on Windows 7.

13
  • Yes, I noticed the same kind of issue for Flag Summary Page. I will post quest, once i will allow to post the question. I am using Google Chrome Version 12.0.742.112
    – Lucifer
    Commented May 16, 2012 at 9:58
  • I'm not seeing this. What browser/OS are you using?
    – Mat
    Commented May 16, 2012 at 10:03
  • Browser: Google Chrome OS: Windows 7
    – NaveenBhat
    Commented May 16, 2012 at 10:04
  • 11
    Something about this post makes me feel rather dizzy...
    – Lix
    Commented May 16, 2012 at 10:14
  • 2
    Would have +1 if not for confusion caused by screenshot. A border around the image would help. Better still, free-hand borders! (yes, I'm that petty)
    – Shawn Chin
    Commented May 16, 2012 at 10:25
  • 1
    @Lix, I know, those are not freehand circles..or is that not what you're referring to? ;)
    – Bart
    Commented May 16, 2012 at 10:25
  • @bar - Hehe - you take me for someone with a FHRC fetish? That might be true - but it's not what I was talking about :P
    – Lix
    Commented May 16, 2012 at 10:27
  • 1
    There. Borders! And your +1. (Took me a while to realise I was clicking on the edit link in the screenshot and not the actual link!!)
    – Shawn Chin
    Commented May 16, 2012 at 10:35
  • 2
    @Knvn what about other live refresh features like new comments, edits and new answers? Do they work? Also check the Chrome Console for possible errors maybe there is some error and 12 is the default for some odd reason.. Commented May 16, 2012 at 11:43
  • @ShaDowWizArd - New comments: displays fine(you can see on the 2nd screenshot) Edit: Same issue New answers: Same issue Console is not showing any errors. If I keep the page open for longer time without refreshing it, then the shown time will increase(as 13h, 14h and so on).
    – NaveenBhat
    Commented May 16, 2012 at 13:45
  • On StackOverflow home page the time is incremental(ascending order) i.e. first few posts shows 12h ago, next few post shows 13h ago and so on.
    – NaveenBhat
    Commented May 16, 2012 at 13:49
  • Weird. Do you have any Chrome Extensions installed? Can you try and disable them for sake of debugging this? Commented May 16, 2012 at 13:55
  • Disabled all the extensions but still the issue exists. The console shows no errors other than the warning Resource interpreted as Other but transferred with MIME type undefined. The chrome version is: 17.0.963.2
    – NaveenBhat
    Commented May 16, 2012 at 14:03

1 Answer 1

7

Update: the differential (if any) of your clock vs. server time is now taken into account when the page loads. This is used when calculating and updating relative times in JavaScript.


Check the clock on your computer - my guess is that you've mixed up AM / PM. The auto refresh happens client side and does depend on having a somewhat in sync clock.

2
  • 1
    Would it be feasible to factor in the server-client time offset that StackExchange.init() calculates internally when updating the timestamps? Apparently I'm something like six seconds off the server, though there's only a small window in which that's visibly relevant.
    – Tim Stone
    Commented May 16, 2012 at 14:57
  • yes this was my clock setting issue. That should be UTC+05:30 but it was set to something else. Now the SO time shows properly.
    – NaveenBhat
    Commented May 16, 2012 at 16:24

Not the answer you're looking for? Browse other questions tagged .