summaryrefslogtreecommitdiffstats
path: root/webapp/components/search_results_item.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/search_results_item.jsx')
-rw-r--r--webapp/components/search_results_item.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index d8e471110..3fff4ea33 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -113,7 +113,7 @@ export default class SearchResultsItem extends React.Component {
<time className='search-item-time'>
<FormattedDate
value={post.create_at}
- hour12={!Utils.isMilitaryTime()}
+ hour12={!this.props.useMilitaryTime}
hour='2-digit'
minute='2-digit'
/>
@@ -186,5 +186,6 @@ SearchResultsItem.propTypes = {
user: React.PropTypes.object,
channel: React.PropTypes.object,
isMentionSearch: React.PropTypes.bool,
- term: React.PropTypes.string
+ term: React.PropTypes.string,
+ useMilitaryTime: React.PropTypes.bool.isRequired
};