Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit efdb0b8

Browse files
authored
fix: wrapping param inSeconds with parseInt to ensure correct addition (#655)
1 parent fb47f98 commit efdb0b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/createHttpTask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function main(
6363
if (inSeconds) {
6464
// The time when the task is scheduled to be attempted.
6565
task.scheduleTime = {
66-
seconds: inSeconds + Date.now() / 1000,
66+
seconds: parseInt(inSeconds) + Date.now() / 1000,
6767
};
6868
}
6969

0 commit comments

Comments
 (0)