mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-1915: Fix Timestamps are displayed as 12 hour even when set to 24 hour mode (#2852)
This commit is contained in:
@@ -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'
|
||||
/>
|
||||
|
||||
@@ -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'
|
||||
/>
|
||||
|
||||
@@ -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'
|
||||
/>
|
||||
|
||||
@@ -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'
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user