[
https://issues.apache.org/jira/browse/HDFS-8388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14708784#comment-14708784
]
Vinayakumar B commented on HDFS-8388:
-------------------------------------
1. {code} var HELPERS = {
'helper_date_tostring' : function (chunk, ctx, bodies, params) {
var value = dust.helpers.tap(params.value, chunk, ctx);
- return chunk.write('' + new Date(Number(value)).toLocaleString());
+ return chunk.write('' + moment(Number(v)).format('ddd MMM DD HH:mm:ss
ZZ YYYY'));
}
};{code}
Here, {{Number(v)}}, there is no {{v}}. You need to replace with {{value}}.
2. Need to fix 2 checkstyles out of 3 shown
3. You can clean lines with whitespace endings, though this can be done during
commit.
In addition to the above changes, just remove duplicate line in
{{dfshealth.html}}. Its not from this issue, but i think that also can go along
with this patch.
{{</script><script type="text/javascript" src="/static/moment.min.js">}}
> Time and Date format need to be in sync in Namenode UI page
> -----------------------------------------------------------
>
> Key: HDFS-8388
> URL: https://issues.apache.org/jira/browse/HDFS-8388
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Archana T
> Assignee: Surendra Singh Lilhore
> Priority: Minor
> Attachments: HDFS-8388-002.patch, HDFS-8388-003.patch,
> HDFS-8388-004.patch, HDFS-8388-005.patch, HDFS-8388.patch, HDFS-8388_1.patch,
> ScreenShot-InvalidDate.png
>
>
> In NameNode UI Page, Date and Time FORMAT displayed on the page are not in
> sync currently.
> Started:Wed May 13 12:28:02 IST 2015
> Compiled:23 Apr 2015 12:22:59
> Block Deletion Start Time 13 May 2015 12:28:02
> We can keep a common format in all the above places.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)