From 5469ec6683cd354947bdebefd5eeef1af3e147d8 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 26 Sep 2022 13:28:50 +1300 Subject: [PATCH] Format Issued datetime --- client/homebrew/pages/accountPage/accountPage.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/homebrew/pages/accountPage/accountPage.jsx b/client/homebrew/pages/accountPage/accountPage.jsx index b65377aa5..9a9512527 100644 --- a/client/homebrew/pages/accountPage/accountPage.jsx +++ b/client/homebrew/pages/accountPage/accountPage.jsx @@ -2,6 +2,7 @@ const React = require('react'); const createClass = require('create-react-class'); const _ = require('lodash'); const cx = require('classnames'); +const moment = require('moment'); const UIPage = require('../basePages/uiPage/uiPage.jsx'); @@ -46,7 +47,7 @@ const AccountPage = createClass({ <>

Account Information

Username: {this.props.uiItems.username || 'No user currently logged in'}

-

Last Login: {this.props.uiItems.issued.toString() || '-'}

+

Last Login: {moment(this.props.uiItems.issued).format('dddd, MMMM Do YYYY, h:mm:ss a ZZ') || '-'}

, <>

Homebrewery Information