From de9581a8383302448bf66642ea86af4aa0928c6a Mon Sep 17 00:00:00 2001
From: Elias Nahum <nahumhbl@gmail.com>
Date: Wed, 10 Feb 2016 15:33:20 -0300
Subject: Fix localization on floating timestamp

---
 web/react/components/posts_view.jsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'web/react/components/posts_view.jsx')

diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx
index ebe19abad..19ab7d5aa 100644
--- a/web/react/components/posts_view.jsx
+++ b/web/react/components/posts_view.jsx
@@ -535,7 +535,15 @@ function FloatingTimestamp({isScrolling, post}) {
         return <noscript />;
     }
 
-    const dateString = Utils.getDateForUnixTicks(post.create_at).toDateString();
+    const dateString = (
+        <FormattedDate
+            value={post.create_at}
+            weekday='short'
+            day='2-digit'
+            month='short'
+            year='numeric'
+        />
+    );
 
     let className = 'post-list__timestamp';
     if (isScrolling) {
-- 
cgit v1.2.3-1-g7c22

