gkoberger / BugzillaJS

A userscript that adds additional functionality to bugzilla
https://addons.mozilla.org/en-US/firefox/addon/bugzillajs/
43 stars 18 forks source link

"NaN years ago" #36

Closed fwenzel closed 13 years ago

fwenzel commented 13 years ago

Sometimes when you change something and bugzilla redirects you straight back to the bug, changes don't show up as "2 seconds ago" but rather "NaN years ago". Screen shot:

https://skitch.com/fredw/ftyht/nan

This might be replication lag in our bugzilla instance, or maybe it shows up when the timestamp for the change is detected to be the same as NOW, but either way it should probably just not show the "... ago" part if it can't show anything useful.

gkoberger commented 13 years ago

Thanks Fred!

I added a feature that updates the relative timestamps every few minutes so that they stay correct if you leave the page open for a few hours. I just was saving the original timestamp wrong, so when it tried to update it had no clue what to do.

https://github.com/gkoberger/BugzillaJS/commit/eb4593e