Accept natural language start times #163

This commit is contained in:
Brendan Heywood committed 2020-03-26 00:56:17 +11:00
1 parent 0e6a8ccabb
commit 22b38c2838
2 files changed
+7 -1

No files matched your search

+3
View File
@@ -65,6 +65,9 @@ if ($clone) {
$default = $config->default_time;
if ($default) {
// First try natural language parsing.
$time = strtotime($default);
// Lean on the Task API to convert the cron syntax to
// the next valid outage date and time.
$parts = explode(' ', $default);