From 17fecd89f5db9a68248ff6b039c9e64b334f6d43 Mon Sep 17 00:00:00 2001
From: Elias Nahum <nahumhbl@gmail.com>
Date: Mon, 14 Mar 2016 13:51:20 -0300
Subject: PLT-2342: Incorrect formatting of last password update string in all
 languages

---
 .../user_settings/user_settings_security.jsx       | 42 ++++++++++++----------
 1 file changed, 24 insertions(+), 18 deletions(-)

(limited to 'webapp/components/user_settings/user_settings_security.jsx')

diff --git a/webapp/components/user_settings/user_settings_security.jsx b/webapp/components/user_settings/user_settings_security.jsx
index 8688c7f2f..e42de91ea 100644
--- a/webapp/components/user_settings/user_settings_security.jsx
+++ b/webapp/components/user_settings/user_settings_security.jsx
@@ -221,24 +221,30 @@ class SecurityTab extends React.Component {
         var d = new Date(this.props.user.last_password_update);
 
         const hours12 = !Utils.isMilitaryTime();
-        describe = formatMessage(holders.lastUpdated, {
-            date: (
-                <FormattedDate
-                    value={d}
-                    day='2-digit'
-                    month='short'
-                    year='numeric'
-                />
-            ),
-            time: (
-                <FormattedTime
-                    value={d}
-                    hour12={hours12}
-                    hour='2-digit'
-                    minute='2-digit'
-                />
-            )
-        });
+        describe = (
+            <FormattedMessage
+                id='user.settings.security.lastUpdated'
+                defaultMessage='Last updated {date} at {time}'
+                values={{
+                    date: (
+                        <FormattedDate
+                            value={d}
+                            day='2-digit'
+                            month='short'
+                            year='numeric'
+                        />
+                    ),
+                    time: (
+                        <FormattedTime
+                            value={d}
+                            hour12={hours12}
+                            hour='2-digit'
+                            minute='2-digit'
+                        />
+                    )
+                }}
+            />
+        );
 
         updateSectionStatus = function updateSection() {
             this.props.updateSection('password');
-- 
cgit v1.2.3-1-g7c22

