Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 397329

Summary: Goofy date format in navigator page
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2013-01-02 13:53:31 EST
I20130101-2230

Last modified times for files in the Navigator page have recently changed format. In orionhub (1.0 M1) I see:

11/23/12 2:09 PM
10/19/12 4:58 PM
etc...

But in orion.eclipse.org (latest master) I see:

Fri Oct 19 2012 12:31:58 GMT-0400 (Eastern Daylight Time)
Mon Dec 17 2012 11:37:46 GMT-0500 (Eastern Standard Time)

This is very verbose and cluttered. I don't need to see the day of week, time in seconds, GMT offset, or name of timezone here.
Comment 1 John Arthorne CLA 2013-01-02 14:29:10 EST
I see this was due to the move away from dojo date formatting utilities:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/diff/bundles/org.eclipse.orion.client.core/web/orion/explorers/navigatorRenderer.js?id=7becf2c474ad726072188be932ebfcaf6ad419ea

Luckily the recently released ecmascript internationalization spec should help here:

http://norbertlindenberg.com/2012/12/ecmascript-internationalization-api/index.html
Comment 2 John Arthorne CLA 2013-01-02 15:03:30 EST
So the goofy format I was seeing was in Chrome 23. In my reading I found Chrome 24 is supposed to implement the new ecma internationalization spec. So I installed Chrome 24 and right away I see a more reasonable date format without changing any Orion code. So this might be a place where we are just switching away from dojo at the right time, when the core platform is now providing the bits we need. Since it looks more reasonable to me now, I will close as wontfix. However if needed there are new optional arguments on Date.toLocaleString where we can customize the format.
Comment 3 Susan McCourt CLA 2013-01-02 15:57:41 EST
thanks for looking into this, John. I was running Chrome 24 so I didn't notice a problem, but this is a good reminder to keep on the lookout in other browsers.