diff options
Diffstat (limited to 'web/src/pages/Status.jsx')
-rw-r--r-- | web/src/pages/Status.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/src/pages/Status.jsx b/web/src/pages/Status.jsx index ad169e556..3ad50f4cb 100644 --- a/web/src/pages/Status.jsx +++ b/web/src/pages/Status.jsx @@ -1,4 +1,3 @@ -/* global setTimeout, clearTimeout */ // Copyright 2018 Red Hat, Inc // // Licensed under the Apache License, Version 2.0 (the "License"); you may @@ -13,6 +12,7 @@ // License for the specific language governing permissions and limitations // under the License. +import * as moment from 'moment-timezone' import * as React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' @@ -33,6 +33,7 @@ class StatusPage extends Refreshable { static propTypes = { location: PropTypes.object, tenant: PropTypes.object, + timezone: PropTypes.string, remoteData: PropTypes.object, dispatch: PropTypes.func } @@ -184,7 +185,7 @@ class StatusPage extends Refreshable { <p>Zuul version: <span>{status.zuul_version}</span></p> {status.last_reconfigured ? ( <p>Last reconfigured: <span> - {new Date(status.last_reconfigured).toString()} + {moment.utc(status.last_reconfigured).tz(this.props.timezone).format('llll')} </span></p>) : ''} </React.Fragment> ) @@ -258,5 +259,6 @@ class StatusPage extends Refreshable { export default connect(state => ({ tenant: state.tenant, + timezone: state.timezone, remoteData: state.status, }))(StatusPage) |