add labels

This commit is contained in:
Peter Maquiran
2023-04-13 12:51:38 +01:00
parent 0660b44542
commit f8614029af
64 changed files with 1113 additions and 208 deletions
+10
View File
@@ -10,10 +10,20 @@ export class TaskService {
constructor() { }
deadlineIsToday(isoDateString:string) {
if(!isoDateString) {
return false
}
return momentG(new Date(), 'dd MMMM yyyy') == momentG(new Date(isoDateString), 'dd MMMM yyyy')
}
lessThen24Hours(isoDateString:string) {
if(!isoDateString) {
console.log('no created date')
return true
}
const creationDate = new Date(isoDateString)
const creationDatePlus24h = new Date(creationDate)
creationDatePlus24h.setHours((creationDate.getHours() + 24))