summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-05-02 18:15:08 -0300
committerCorey Hulen <corey@hulen.com>2016-05-02 14:15:08 -0700
commita169a8e882fc89154a3b1496a3f033bffaf62665 (patch)
tree35ab662eeae31392853c5208ebaa7da57927c359 /webapp/components
parenta92e1f79b6be8bcf7fcfa2a55d1a0587aa44946f (diff)
downloadchat-a169a8e882fc89154a3b1496a3f033bffaf62665.tar.gz
chat-a169a8e882fc89154a3b1496a3f033bffaf62665.tar.bz2
chat-a169a8e882fc89154a3b1496a3f033bffaf62665.zip
PLT-1915: Fix Timestamps are displayed as 12 hour even when set to 24 hour mode (#2852)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/rhs_comment.jsx2
-rw-r--r--webapp/components/rhs_root_post.jsx2
-rw-r--r--webapp/components/search_results_item.jsx2
-rw-r--r--webapp/components/time_since.jsx2
4 files changed, 4 insertions, 4 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx
index 290eb64c6..452174045 100644
--- a/webapp/components/rhs_comment.jsx
+++ b/webapp/components/rhs_comment.jsx
@@ -275,7 +275,7 @@ export default class RhsComment extends React.Component {
day='numeric'
month='long'
year='numeric'
- hour12={true}
+ hour12={!Utils.isMilitaryTime()}
hour='2-digit'
minute='2-digit'
/>
diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx
index 9a207e429..d56306d28 100644
--- a/webapp/components/rhs_root_post.jsx
+++ b/webapp/components/rhs_root_post.jsx
@@ -240,7 +240,7 @@ export default class RhsRootPost extends React.Component {
day='numeric'
month='long'
year='numeric'
- hour12={true}
+ hour12={!Utils.isMilitaryTime()}
hour='2-digit'
minute='2-digit'
/>
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index 85d069dbc..7804cab7b 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -100,7 +100,7 @@ export default class SearchResultsItem extends React.Component {
<time className='search-item-time'>
<FormattedDate
value={post.create_at}
- hour12={true}
+ hour12={!Utils.isMilitaryTime()}
hour='2-digit'
minute='2-digit'
/>
diff --git a/webapp/components/time_since.jsx b/webapp/components/time_since.jsx
index 9f7a93ceb..f715193e2 100644
--- a/webapp/components/time_since.jsx
+++ b/webapp/components/time_since.jsx
@@ -41,7 +41,7 @@ export default class TimeSince extends React.Component {
month='long'
day='numeric'
year='numeric'
- hour12={true}
+ hour12={!Utils.isMilitaryTime()}
hour='numeric'
minute='2-digit'
/>