Bug 142208 - Properties view should inidicate time zone for "Last modified"
Summary: Properties view should inidicate time zone for "Last modified"
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: Future   Edit
Assignee: David Dykstal CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-17 09:28 EDT by Martin Oberhuber CLA
Modified: 2007-07-12 09:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2006-05-17 09:28:43 EDT
The "Last modified" time for files in the RSE Properties View is filled from IHostFile.getModifiedDate(), which has semantics same as Java File.lastModified(): seconds since the Epoch, GMT.

Essentially for a remote system we do not know what time zone the remote system runs in, so we need to display time information in a common format such as UTC or GMT.

What's confusing for the user, is that when he types e.g. ls -l in a remote shell, times are displayed in the remote system's time zone. So they do not match what the Properties view shows.

Therefore, the Properties View should indicate that the times displayed are in GMT, e.g.
  April 6, 2006 10:40:33 AM GMT

This could be accomplished by doing Date.toGMTString() instead of Date.toString(), or the equivalent from DateFormat.format().
Comment 1 Martin Oberhuber CLA 2006-05-18 04:21:57 EDT
When I do Right-click > Properties on a file, I see a date displayed including a time zone indication:

 Thursday, April 6, 2006 10:40:33 AM CEST

This seems to be the time zone of my local RSE client, which is fine [check if it is correct or GMT though]. I think the Properties View should show the same time zone indication in a shorter form (without the day of week, and month only 3 chars):

 Apr 6, 2006 10:40:33 AM CEST
Comment 2 Martin Oberhuber CLA 2006-07-03 05:26:00 EDT
Decreased priority and set to enhancement since this is just a display issue that can be fixed late.
Comment 3 David Dykstal CLA 2007-05-30 12:09:59 EDT
Martin --

I think I may have fixed this with the change to use the DateFormat class from ICU4J. Please take a look and verify.

-- DaveD
Comment 4 Martin Oberhuber CLA 2007-07-12 09:03:03 EDT
No, in the Properties View there is still no time zone indication.
It's not a very big deal though.