Skip to content

Commit 486b53e

Browse files
Chuan MaChuan Ma
authored andcommitted
php strtotime() does not return relative time.
1 parent f407888 commit 486b53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ point in the future. The classic example is sending an email:
2727
require 'Resque/Resque.php';
2828
require 'ResqueScheduler/ResqueScheduler.php';
2929

30-
$in = strtotime('+5 days');
30+
$in = 3600; // trigger the job in 1 hour.
3131
$args = array('id' => $user->id);
3232
ResqueScheduler::enqueueIn($in, 'email', 'SendFollowUpEmail', $args);
3333

@@ -100,4 +100,4 @@ of the job, the class name of the job, and the job's arguments.
100100

101101
## Contributors ##
102102

103-
* chrisboulton
103+
* chrisboulton

0 commit comments

Comments
 (0)