Skip to content

Commit

Permalink
fix: Fix create time format in volume detail
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Aug 17, 2020
1 parent 999b20e commit f0d2b43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/pages/fedprojects/containers/Volumes/Detail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { isEmpty } from 'lodash'
import { observer, inject } from 'mobx-react'
import { Loading } from '@pitrix/lego-ui'

import { getDisplayName } from 'utils'
import { getDisplayName, getLocalTime } from 'utils'
import { trigger } from 'utils/action'
import { toJS } from 'mobx'
import Volume from 'stores/volume'
Expand Down Expand Up @@ -154,7 +154,7 @@ export default class VolumeDetail extends React.Component {
},
{
name: t('Create Time'),
value: createTime,
value: getLocalTime(createTime).format('YYYY-MM-DD HH:mm:ss'),
},
{
name: t('Creator'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { Loading, Tooltip, Icon } from '@pitrix/lego-ui'

import VolumeStore from 'stores/volume'
import { Status } from 'components/Base'
import { getDisplayName } from 'utils'
import { getDisplayName, getLocalTime } from 'utils'
import { trigger } from 'utils/action'
import { toJS } from 'mobx'
import VolumeSnapshotStore from 'stores/volumeSnapshot'
Expand Down Expand Up @@ -165,7 +165,7 @@ export default class VolumeSnapshotDetail extends React.Component {
},
{
name: t('Create Time'),
value: createTime,
value: getLocalTime(createTime).format('YYYY-MM-DD HH:mm:ss'),
},
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/projects/containers/Volumes/Detail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { observer, inject } from 'mobx-react'
import { Loading } from '@pitrix/lego-ui'

import { Status } from 'components/Base'
import { getDisplayName } from 'utils'
import { getDisplayName, getLocalTime } from 'utils'
import { trigger } from 'utils/action'
import { toJS } from 'mobx'
import Volume from 'stores/volume'
Expand Down Expand Up @@ -250,7 +250,7 @@ export default class VolumeDetail extends React.Component {
},
{
name: t('Create Time'),
value: createTime,
value: getLocalTime(createTime).format('YYYY-MM-DD HH:mm:ss'),
},
{
name: t('Creator'),
Expand Down

0 comments on commit f0d2b43

Please sign in to comment.