mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: only change to time format when dealing with today's time
This commit is contained in:
@ -141,6 +141,7 @@ export default Ember.Component.extend({
|
|||||||
if (
|
if (
|
||||||
time &&
|
time &&
|
||||||
toTime &&
|
toTime &&
|
||||||
|
date === moment().format(this.dateFormat) &&
|
||||||
date === toDate &&
|
date === toDate &&
|
||||||
this.get("formats").includes(format)
|
this.get("formats").includes(format)
|
||||||
) {
|
) {
|
||||||
|
Reference in New Issue
Block a user