FIX: quality/bugfix dashboard/reports pass (#6283)

This commit is contained in:
Joffrey JAFFEUX
2018-08-17 16:19:25 +02:00
committed by GitHub
parent 010fe479cb
commit 37d4f27c44
22 changed files with 733 additions and 660 deletions

View File

@@ -5,14 +5,23 @@ export default Discourse.Route.extend({
if (!controller.get("start_date")) {
controller.set(
"start_date",
moment()
.subtract("30", "day")
moment
.utc()
.subtract(1, "day")
.subtract(1, "month")
.startOf("day")
.format("YYYY-MM-DD")
);
}
if (!controller.get("end_date")) {
controller.set("end_date", moment().format("YYYY-MM-DD"));
controller.set(
"end_date",
moment()
.utc()
.endOf("day")
.format("YYYY-MM-DD")
);
}
}
});