Permalink
Browse files

Fixed loss of timeZone when the parameters are passed as an object.

  • Loading branch information...
1 parent bec0721 commit 912fb5e07d61458d36d1d39d62a28461d65ed9be @baryshev baryshev committed Jun 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cron.js
View
@@ -233,8 +233,8 @@ function CronJob(cronTime, onTick, onComplete, start, timeZone) {
onTick = cronTime.onTick;
onComplete = cronTime.onComplete;
start = cronTime.start;
- cronTime = cronTime.cronTime;
timeZone = cronTime.timeZone;
+ cronTime = cronTime.cronTime;
}
if (timeZone && !(CronDate.prototype.setTimezone)) console.log('You specified a Timezone but have not included the `time` module. Timezone functionality is disabled. Please install the `time` module to use Timezones in your application.');

0 comments on commit 912fb5e

Please sign in to comment.