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,24 +221,30 @@ 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 = (
date: ( <FormattedMessage
<FormattedDate id='user.settings.security.lastUpdated'
value={d} defaultMessage='Last updated {date} at {time}'
day='2-digit' values={{
month='short' date: (
year='numeric' <FormattedDate
/> value={d}
), day='2-digit'
time: ( month='short'
<FormattedTime year='numeric'
value={d} />
hour12={hours12} ),
hour='2-digit' time: (
minute='2-digit' <FormattedTime
/> value={d}
) hour12={hours12}
}); hour='2-digit'
minute='2-digit'
/>
)
}}
/>
);
updateSectionStatus = function updateSection() { updateSectionStatus = function updateSection() {
this.props.updateSection('password'); this.props.updateSection('password');