summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-02-11 08:08:26 -0500
committerChristopher Speller <crspeller@gmail.com>2016-02-11 08:08:26 -0500
commit4ffbd3642ed8ad7961218845c7c89108c26a2737 (patch)
tree151ec58d85df43f4e8dea0a47c392bc3b3859459 /web
parentf2a6826890e5992302dc60ddc271acdae9fe7137 (diff)
parentde9581a8383302448bf66642ea86af4aa0928c6a (diff)
downloadchat-4ffbd3642ed8ad7961218845c7c89108c26a2737.tar.gz
chat-4ffbd3642ed8ad7961218845c7c89108c26a2737.tar.bz2
chat-4ffbd3642ed8ad7961218845c7c89108c26a2737.zip
Merge pull request #2144 from ZBoxApp/PLT-1928
PLT-1928: Fix localization on floating timestamp
Diffstat (limited to 'web')
-rw-r--r--web/react/components/posts_view.jsx10
1 files changed, 9 insertions, 1 deletions
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) {