Project

General

Profile

Bug #3629

Updated by Tom Clegg about 9 years ago

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: 

 <pre> 
 <p class="localized-time" data-time="2014-05-24T22:09:13Z"></p> 
 </pre> 

 <pre> 
 $(".localized-time").each(function() { /* fix the date */ }); 
 </pre> 

 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. 

Back