diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-02-10 15:33:20 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-02-10 15:33:20 -0300 |
commit | de9581a8383302448bf66642ea86af4aa0928c6a (patch) | |
tree | 1057dbf326eae68270d2cbe16d11f5008eaacb80 /web/react/components | |
parent | a15f8c582dd5c9371cce20e572d0552970afbadd (diff) | |
download | chat-de9581a8383302448bf66642ea86af4aa0928c6a.tar.gz chat-de9581a8383302448bf66642ea86af4aa0928c6a.tar.bz2 chat-de9581a8383302448bf66642ea86af4aa0928c6a.zip |
Fix localization on floating timestamp
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/posts_view.jsx | 10 |
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) { |