-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: always consider timezone when set allday schedule period(fix #662) #667
Conversation
Can one of the admins verify this patch? |
ok to test |
src/js/model/schedule.js
Outdated
if (util.isString(start)) { | ||
start = datetime.parse(start.substring(0, 10)); | ||
} else { | ||
start = new TZDate(start || Date.now()); | ||
} | ||
if (util.isString(end)) { | ||
end = datetime.parse(end.substring(0, 10)); | ||
} else { | ||
end = new TZDate(end || this.start); | ||
} | ||
|
||
this.start = start; | ||
this.start = new TZDate(start || Date.now()); | ||
this.start.setHours(0, 0, 0); | ||
this.end = end || new TZDate(this.start); | ||
this.end = new TZDate(end || this.start); | ||
this.end.setHours(23, 59, 59); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use start
, end
of datetime
https://github.com/nhn/tui.calendar/blob/master/src/js/common/datetime.js#L396
https://github.com/nhn/tui.calendar/blob/master/src/js/common/datetime.js#L408
this.start = datetime.start(new TZDate(start || Date.now()));
this.end = datetime.end(new TZDate(end || this.start));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[07/23]reviewed :)
@dongsik-yoo check this PR. |
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks! |
Please check if the PR fulfills these requirements
fix #xxx[,#xxx]
, where "xxx" is the issue number)Description
Thank you for your contribution to TOAST UI product. 🎉 😘 ✨