Closed Bug 1146767 Opened 9 years ago Closed 9 years ago

update relative dates without refreshing the page

Categories

(bugzilla.mozilla.org :: User Interface, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: glob, Assigned: glob)

Details

Attachments

(1 file)

the relative dates on show-bug are only accurate at the time the bug was first loaded.

they should update over time without needing to refresh the page.

this requires mirroring the logic in the Time::Duration module in javascript.
Attached patch 1146767_1.patchSplinter Review
- move _sql_to_time into BugModal::Util
- almost line-for-line port Time::Duration to javascript
- update relative times every 60 seconds
Attachment #8587212 - Flags: review?(dylan)
Comment on attachment 8587212 [details] [diff] [review]
1146767_1.patch

Review of attachment 8587212 [details] [diff] [review]:
-----------------------------------------------------------------

r=dylan

This change is somewhat subtle and almost devious if you're used to having to hit refresh to update the timestamps.
Attachment #8587212 - Flags: review?(dylan) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   6116f2f..e5131c8  master -> master
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: User Interface: Modal → User Interface
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: