fix errors
This commit is contained in:
@@ -39,11 +39,11 @@ export class GristService extends BaseService<GristClient> {
|
|||||||
private getTodayAsId() {
|
private getTodayAsId() {
|
||||||
const now = DateTime.now().setZone("Europe/Berlin");
|
const now = DateTime.now().setZone("Europe/Berlin");
|
||||||
const start = DateTime.fromObject(
|
const start = DateTime.fromObject(
|
||||||
{ year: now.year, month: 0, day: 0, hour: 0, minute: 0 },
|
{ year: now.year, month: 1, day: 1, hour: 0, minute: 0 },
|
||||||
{ zone: "Europe/Berlin" },
|
{ zone: "Europe/Berlin" },
|
||||||
);
|
);
|
||||||
const diff = start.diff(now).toMillis();
|
const diff = now.diff(start).toMillis();
|
||||||
return Math.floor(diff / 86400000);
|
return Math.ceil(diff / 86400000);
|
||||||
}
|
}
|
||||||
|
|
||||||
private transformToPersonalGoals(
|
private transformToPersonalGoals(
|
||||||
|
|||||||
Reference in New Issue
Block a user