Compare commits
2
Commits
4bd9933a87
...
b12f1b62d4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b12f1b62d4 | ||
|
|
ede6157582 |
@@ -6,7 +6,7 @@
|
||||
"every_week": "Every week",
|
||||
"every_month": "Every month",
|
||||
"every_year": "Every year",
|
||||
"custom": "Custom (crontab)",
|
||||
"custom": "Custom (cron syntax)",
|
||||
"one_time": "One time (then delete)"
|
||||
},
|
||||
"week": [
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"every_week": "Toutes les semaines",
|
||||
"every_month": "Tous les mois",
|
||||
"every_year": "Tous les ans",
|
||||
"custom": "Personnalisé (crontab)",
|
||||
"custom": "Personnalisé (syntaxe cron)",
|
||||
"one_time": "Une seule fois (puis suppression)"
|
||||
},
|
||||
"week": [
|
||||
|
||||
@@ -46,6 +46,7 @@ export function taskNextReset(task: Task): Date | null {
|
||||
try {
|
||||
const interval = CronExpressionParser.parse(task.reset_cron, {
|
||||
currentDate: task.check_date,
|
||||
hashSeed: task.id,
|
||||
});
|
||||
return interval.next().toDate();
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user