Skip to content

Commit

Permalink
feat: display k8s object CREATED_AT time in local time instead of UTC (
Browse files Browse the repository at this point in the history
…#4347) (#4383)

* feat: display k8s object CREATED_AT time in local time instead of UTC

* fix linting issues
  • Loading branch information
bukbuk1231 authored Sep 21, 2020
1 parent e28a3e5 commit 9f47a11
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {DataLoader, Tab, Tabs} from 'argo-ui';
import * as moment from 'moment';
import * as React from 'react';

import {YamlEditor} from '../../../shared/components';
Expand All @@ -23,7 +24,10 @@ export const ApplicationNodeInfo = (props: {
if (props.node.createdAt) {
attributes.push({
title: 'CREATED_AT',
value: props.node.createdAt
value: moment
.utc(props.node.createdAt)
.local()
.format('MM/DD/YYYY HH:mm:ss')
});
}
if ((props.node.images || []).length) {
Expand Down

0 comments on commit 9f47a11

Please sign in to comment.