feat(host): display the date for license expiry value

This commit is contained in:
Olivier Lambert
2016-05-31 17:25:35 +02:00
parent 69cb6d30b5
commit 8315c79ef7

View File

@@ -4,7 +4,7 @@ import React from 'react'
import TabButton from 'tab-button'
import { Toggle } from 'form'
import { enableHost, disableHost, restartHost } from 'xo'
import { FormattedRelative } from 'react-intl'
import { FormattedRelative, FormattedTime } from 'react-intl'
import { Container, Row, Col } from 'grid'
const forceReboot = host => restartHost(host, true)
@@ -142,7 +142,7 @@ export default ({
<tr>
<th>{_('hostLicenseExpiry')}</th>
<td>
{host.license_params.expiry}
<FormattedTime value={host.license_expiry * 1000} day='numeric' month='long' year='numeric' /><br />
</td>
</tr>
</tbody>