[ 
https://issues.apache.org/jira/browse/YARN-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13997193#comment-13997193
 ] 

Akira AJISAKA commented on YARN-570:
------------------------------------

Attached a patch. With the patch, yarn.util.Times.format() renders as "Wed May 
14 10:24:29 JST 2014", which is consistent with MapReduce jobhistoryserver 
WebUI.
bq. Can you update format() as well to print in the same style, if you agree?
The format of JavaScript {{Date.toLocaleString()}} varies by the browser. In my 
environment: 
{code}
Chrome: 2014/5/14 10:25:08
Safari: 2014年5月14日 10:25:08 JST
{code}
Therefore, it's impossible to update {{format()}} to print in the same style.

> Time strings are formated in different timezone
> -----------------------------------------------
>
>                 Key: YARN-570
>                 URL: https://issues.apache.org/jira/browse/YARN-570
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Peng Zhang
>            Assignee: Akira AJISAKA
>         Attachments: MAPREDUCE-5141.patch, YARN-570.2.patch
>
>
> Time strings on different page are displayed in different timezone.
> If it is rendered by renderHadoopDate() in yarn.dt.plugins.js, it appears as 
> "Wed, 10 Apr 2013 08:29:56 GMT"
> If it is formatted by format() in yarn.util.Times, it appears as "10-Apr-2013 
> 16:29:56"
> Same value, but different timezone.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to