Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

  • Loading branch information...
commit 912fb5e07d61458d36d1d39d62a28461d65ed9be 1 parent bec0721
@baryshev baryshev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cron.js
2  lib/cron.js
@@ -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.');
Please sign in to comment.
Something went wrong with that request. Please try again.