mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add labels
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user