Merge pull request #2427 from ZBoxApp/PLT-2342

PLT-2342: Incorrect formatting of last password update string in all …
Этот коммит содержится в:
Corey Hulen
2016-03-16 18:08:46 -07:00
родитель dd13f0bc66 17fecd89f5
Коммит 59b5f162e4

Просмотреть файл

@@ -221,7 +221,11 @@ class SecurityTab extends React.Component {
var d = new Date(this.props.user.last_password_update); var d = new Date(this.props.user.last_password_update);
const hours12 = !Utils.isMilitaryTime(); const hours12 = !Utils.isMilitaryTime();
describe = formatMessage(holders.lastUpdated, { describe = (
<FormattedMessage
id='user.settings.security.lastUpdated'
defaultMessage='Last updated {date} at {time}'
values={{
date: ( date: (
<FormattedDate <FormattedDate
value={d} value={d}
@@ -238,7 +242,9 @@ class SecurityTab extends React.Component {
minute='2-digit' minute='2-digit'
/> />
) )
}); }}
/>
);
updateSectionStatus = function updateSection() { updateSectionStatus = function updateSection() {
this.props.updateSection('password'); this.props.updateSection('password');