Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 13

CurtisOdenHotBlackcolinwill78ericgillettelf349141590tc74422 +6 guests

23 hours ago? (bug)

i've been meaning to report this one for a while.
whenever anyone adds a new post, this happens:



upon refresh the proper time is displayed.
(this is with the latest vanilla, but it's been happening for several revisions.)

Comments

  • Posts: 4,883
    Hmm. I've never seen that...
  • Posts: 1,290
    yeah, i have no idea. it happens to all my users. and this is a completely fresh (as of yesterday) install. it happened before the new install too.
  • Posts: 2,301
    Some odd timezone offset? MySQL server on different time than web server?

    Does it go to 24 hours (err... one day) ago if you check back in a hour?
  • Posts: 4,883
    I don't use mysql to generate any timestamps. Everything is done with php (after there was a bunch of confusion a few months back with mysql being in a different timezone than the server itself. Wierdness).

    Hmm. It must have something to do with the zero when you subtract comment posting time (now) from current time (now) on a server that is very fast at posting.

    But I could have sworn I figured that one out a while back.

    You're a good programmer - can you do some testing to see if you can figure out what's going on?
  • Posts: 1,290
    Sure thing.
  • Posts: 926
    I don't get it. Whats wrong with that. 23 hours is valid, isn't it? What is it suppose to say?

    "Almost one day ago" ?
  • Posts: 2,419
     Quote: Krak  I don't get it. Whats wrong with that. 23 hours is valid, isn't it? What is it suppose to say?

    It's a NEW post, it should say 5 seconds ago!
  • Posts: 926
    Oh snap, reading helps, haha.
  • Posts: 3,235
    Actually, I remember this happening a while back in pre 9.x builds, but I totally forget what the hell was causing it. Instead of 23 hours ago it was reporting 22 which was odd. Here it is: http://lussumo.com/community/discussion/421/22-hours-ago/
  • Posts: 1,290
    ah, good find lech
  • Posts: 4,883
    I fixed that bug, though. This one is different...
  • Posts: 5,574
    Yeah lech, i remembered that, but as mark says it was different. That was the mysql timezone issue wasnt it?
  • Posts: 291
    I started noticing this bug a few days ago... if you add a comment and the timestamp says "23 hours ago", every new comment will be added <strong>before</strong> the one with a buggy timestamp. But after an hour (or so) the timestamp returns to normal...
  • Posts: 291
    ... and it started to happen even more often.
  • Posts: 18
    Hi, so anyone got a remedy for this because I am having the same problem on my install too and it is running on my localhost so no timezone issues.
    Anyone got some insight on this one.
    I have done

    if($Days < 0)
    $Days = 0;

    and It has sort of fixed on the local but on the uploaded versoin, its still not running.
  • Posts: 18
    My server is in GMT whereas the site runs on Dutch time.
    Does it have something to do with that.
  • Posts: 18
    I have added a small hack in functions.php file in TimeDiff function.
    It is $Time = $Time + 60*60;

    And its doing great since. :)
    let me know your thoughts. :)
Sign In or Register to comment.