Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
updateChecklistItemDatesBasedOnDueDate
var card = new Notification(notification).addedDueDate();
copied.checklists().first().items().each(function(item)
{
var diff = item.due().getTime() - card.previouslyDue().getTime();
item.setDue(new Date(card.due()).addSeconds(diff));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment