Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cron/Help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cron/cron.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion cron/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down