diff --git a/src/features/tasks/utils/getTaskStatus.ts b/src/features/tasks/utils/getTaskStatus.ts index 6ae6591199..8bfee82655 100644 --- a/src/features/tasks/utils/getTaskStatus.ts +++ b/src/features/tasks/utils/getTaskStatus.ts @@ -20,8 +20,7 @@ const getTaskStatus = (task: ZetkinTask): TASK_STATUS => { return TASK_STATUS.EXPIRED; } - const isPublishedPassed = - published && dayjs(published + '.000Z').isBefore(now); + const isPublishedPassed = published && dayjs.utc(published).isBefore(now); if (isPublishedPassed) { return TASK_STATUS.ACTIVE;