Project

General

Profile

Actions

Bug #3629

closed

[Workbench] Display timestamps in user's local timezone using class="localized-time"

Added by Peter Amstutz over 9 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Workbench
Target version:
-
Story points:
0.5

Description

Most places in workbench display the raw timestamps from the database, which are stored in UTC. This is inconvenient for anyone who doesn't live in the UTC time zone since it does not correspond to their local time. Workbench pages should automatically adjust dates to the user's local timezone.

This can be done using Javascript. The solution want to use HTML5 data tags to supply the UTC date, and then use jQuery to find all the tags and update their contents:

<p class="localized-time" data-time="2014-05-24T22:09:13Z"></p>
$(".localized-time").each(function() { /* fix the date */ });

See also assets/log_viewer.js for some example of code to work with Date().

Some places to fix:

Job#default_name
Collections page

This story includes covering as many timestamps as possible using class="localized-time".

This story does not include dealing with timestamps that have been inserted in strings somewhere (like "Collection created on 2015-01-01 by foo") and can't be reliably identified as timestamps. We'll want to deal with those too, just not right here/now.

Actions #1

Updated by Peter Amstutz over 9 years ago

  • Description updated (diff)
  • Category set to Workbench
Actions #2

Updated by Tom Clegg over 9 years ago

  • Target version set to Arvados Future Sprints
Actions #3

Updated by Tom Clegg over 9 years ago

  • Story points set to 0.5
Actions #4

Updated by Peter Amstutz over 9 years ago

  • Target version changed from Arvados Future Sprints to 2014-10-08 sprint
Actions #5

Updated by Peter Amstutz over 9 years ago

  • Assigned To set to Peter Amstutz
Actions #6

Updated by Peter Amstutz over 9 years ago

  • Target version changed from 2014-10-08 sprint to Arvados Future Sprints
Actions #7

Updated by Tom Clegg about 9 years ago

  • Subject changed from [Workbench] Display timestamps in user's local timezone to [Workbench] Display timestamps in user's local timezone using class="localized-time"
Actions #8

Updated by Tom Clegg about 9 years ago

  • Description updated (diff)
Actions #9

Updated by Ward Vandewege almost 9 years ago

  • Target version changed from Arvados Future Sprints to Bug Triage
Actions #10

Updated by Brett Smith almost 9 years ago

  • Target version changed from Bug Triage to 2015-07-08 sprint
Actions #11

Updated by Peter Amstutz almost 9 years ago

  • Assigned To deleted (Peter Amstutz)
Actions #12

Updated by Brett Smith almost 9 years ago

  • Target version changed from 2015-07-08 sprint to Arvados Future Sprints
Actions #13

Updated by Peter Amstutz over 4 years ago

  • Status changed from New to Closed
Actions #14

Updated by Peter Amstutz almost 4 years ago

  • Target version deleted (Arvados Future Sprints)
Actions

Also available in: Atom PDF