mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 00:18:15 +08:00
FIX: counters were showing future instead of past (#6299)
This commit is contained in:
@ -42,6 +42,15 @@ export default Ember.Mixin.create({
|
||||
.subtract(1, "week");
|
||||
},
|
||||
|
||||
@computed()
|
||||
lastMonth() {
|
||||
return moment()
|
||||
.locale("en")
|
||||
.utc()
|
||||
.startOf("day")
|
||||
.subtract(1, "month");
|
||||
},
|
||||
|
||||
@computed()
|
||||
endDate() {
|
||||
return moment()
|
||||
@ -51,6 +60,14 @@ export default Ember.Mixin.create({
|
||||
.endOf("day");
|
||||
},
|
||||
|
||||
@computed()
|
||||
today() {
|
||||
return moment()
|
||||
.locale("en")
|
||||
.utc()
|
||||
.endOf("day");
|
||||
},
|
||||
|
||||
actions: {
|
||||
changePeriod(period) {
|
||||
DiscourseURL.routeTo(this._reportsForPeriodURL(period));
|
||||
|
Reference in New Issue
Block a user