Permalink
Browse files

Merge pull request #37 from baryshev/patch-1

Fixed loss of timeZone when the parameters are passed as an object.
  • Loading branch information...
2 parents bec0721 + 912fb5e commit b74a8c0bc8cd5af00eab7e0f29d395d117648193 @ncb000gt ncb000gt committed Jun 8, 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 b74a8c0

Please sign in to comment.