mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
make sure schedule end dates are set as utc
This commit is contained in:
@@ -868,7 +868,7 @@ function makeMatcherClass (date) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function makeEndDate (checkedDate, matcher) {
|
function makeEndDate (checkedDate, matcher) {
|
||||||
let end = moment(checkedDate);
|
let end = moment.utc(checkedDate);
|
||||||
end.date(TYPE_SCHEDULE[matcher.type]);
|
end.date(TYPE_SCHEDULE[matcher.type]);
|
||||||
end.hour(0);
|
end.hour(0);
|
||||||
end.minute(0);
|
end.minute(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user