diff --git a/cron/Help.txt b/cron/Help.txt index 767b189db9..9ed07782f5 100644 --- a/cron/Help.txt +++ b/cron/Help.txt @@ -42,9 +42,9 @@ The "cron" command accepts the following options: time T (HH:MM:SS). If not all values are given, zeroes will be added to the smaller end (e.g. "1:23" will be interpreted as "1:23:00"). Times - will be interpreted to be within the next - 24 hours. Cannot be used with initiative-based - arguments. + are in GMT and will be interpreted to be within + the next 24 hours. Cannot be used with + initiative-based arguments. -a T, --after T The first execution of the command will be after interval T (HH:MM:SS). If not all values are given, zeroes will be added to the larger end diff --git a/cron/cron.js b/cron/cron.js index d7c509100a..dc2e426441 100644 --- a/cron/cron.js +++ b/cron/cron.js @@ -386,7 +386,7 @@ var cron = cron || { } var tokens = args['time'].split(":").map(function(t){ return parseInt(t || "0"); }); while (tokens.length < 3){ tokens.push(0); } - d.setHours(tokens[0], tokens[1], tokens[2]); + d.setUTCHours(tokens[0], tokens[1], tokens[2]); if (d.valueOf() <= dv){ // specified time is in the past; add 24 hours so it's in the future d.setTime(d.valueOf() + 24 * 60 * 60 * 1000); diff --git a/cron/package.json b/cron/package.json index c7b878789a..c40cbad8ed 100644 --- a/cron/package.json +++ b/cron/package.json @@ -1,6 +1,6 @@ { "name": "cron", - "version": "0.3", + "version": "0.4", "description": "Schedule (possibly recurring) commands to run at some point in the future.", "authors": "manveti", "roll20userid": "503018",