Skip to content

Commit cd69b45

Browse files
committed
refactor: Reformat an edit from a recent PR.
1 parent ddd2af2 commit cd69b45

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Task/Recurrence.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,15 @@ export class Recurrence {
269269
// the day of the year when DST kicks in and the time of day is before DST actually kicks in
270270
// (typically between midnight and very early morning, varying across geographies).
271271
// We workaround the bug by setting the time of day to noon before calling local(true)
272-
const localTimeZone = window.moment.utc(date).set({hour:12,minute:0,second:0,millisecond:0}).local(true);
272+
const localTimeZone = window.moment
273+
.utc(date)
274+
.set({
275+
hour: 12,
276+
minute: 0,
277+
second: 0,
278+
millisecond: 0,
279+
})
280+
.local(true);
273281

274282
return localTimeZone.startOf('day');
275283
}

0 commit comments

Comments
 (0)