Due date set on weekend
function dueDateSetOnWeekend(notification) | |
{ | |
var added = new Notification(notification).addedDueDate(); | |
if(!new Date(added.due()).isWeekDay()) | |
{ | |
added.setDue(new Date(added.due()).next("Monday")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment