summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-03-30 13:45:17 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-03-30 13:45:17 -0400
commit364543c05bfe65f2573608fbf2549c80da52c905 (patch)
tree996cc95ceacd093a3c58d02979a6d3401d0afc43 /webapp
parent689cac535e45c47a4f603b236dc129dd456efcc9 (diff)
downloadchat-364543c05bfe65f2573608fbf2549c80da52c905.tar.gz
chat-364543c05bfe65f2573608fbf2549c80da52c905.tar.bz2
chat-364543c05bfe65f2573608fbf2549c80da52c905.zip
PLT-5976 Fixed date of first post in RHS (#5922)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/rhs_thread.jsx5
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}