diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-03-30 13:45:17 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-03-30 13:45:17 -0400 |
commit | 364543c05bfe65f2573608fbf2549c80da52c905 (patch) | |
tree | 996cc95ceacd093a3c58d02979a6d3401d0afc43 | |
parent | 689cac535e45c47a4f603b236dc129dd456efcc9 (diff) | |
download | chat-364543c05bfe65f2573608fbf2549c80da52c905.tar.gz chat-364543c05bfe65f2573608fbf2549c80da52c905.tar.bz2 chat-364543c05bfe65f2573608fbf2549c80da52c905.zip |
PLT-5976 Fixed date of first post in RHS (#5922)
-rw-r--r-- | webapp/components/rhs_thread.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/rhs_thread.jsx b/webapp/components/rhs_thread.jsx index 8e26fb347..79879973b 100644 --- a/webapp/components/rhs_thread.jsx +++ b/webapp/components/rhs_thread.jsx @@ -324,7 +324,8 @@ export default class RhsThread extends React.Component { const postsArray = this.state.postsArray; const selected = this.state.selected; const profiles = this.state.profiles || {}; - let previousPostDay = Utils.getDateForUnixTicks(selected.create_at); + const rootPostDay = Utils.getDateForUnixTicks(selected.create_at); + let previousPostDay = rootPostDay; if (postsArray == null || selected == null) { return ( @@ -425,7 +426,7 @@ export default class RhsThread extends React.Component { > <div className='post-right__scroll'> <DateSeparator - date={previousPostDay} + date={rootPostDay.toDateString()} /> <RootPost ref={selected.id} |