Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit e9231a2

Browse files
author
Charles Ma
committed
BUG: refs #301 Fixed scheduler notification date conversion error
1 parent 8c0fe65 commit e9231a2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/scheduler/Notification.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ public function scheduleTask($params)
3535
{
3636
$params['fire_time'] = date('c');
3737
}
38-
else
38+
elseif(is_numeric($params['fire_time']))
3939
{
4040
$params['fire_time'] = date('c', $params['fire_time']);
4141
}
42+
else
43+
{
44+
$params['fire_time'] = $params['fire_time'];
45+
}
4246

4347
if(!$params['run_only_once'])
4448
{

0 commit comments

Comments
 (0)