Akira AJISAKA commented on YARN-570:

Thanks [~ozawa] for the comment.
Attaching a patch to change {{renderHadoopDate}} to return "almost" the same 
Javascript doesn't support z pattern (ex. PDT, JST, ...), so the patch will 
output in Z pattern (ex. -0800, +0900, ...).
In my environment, date is rendered as follows:
Mon Jun 30 16:48:18 +0900 2014 // EEE MMM dd hh:mm:ss Z yyyy
I think it's better to render in Java instead of Javascript to make the format 
the same.

> 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
>          Components: webapp
>    Affects Versions: 2.2.0
>            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

Reply via email to