We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eadbaea commit 36ad0afCopy full SHA for 36ad0af
1 file changed
src/lib/buy.ts
@@ -92,9 +92,7 @@ async function placeBuyOrder(props: PlaceBuyOrderArguments) {
92
return logAndQuit("Invalid duration");
93
}
94
95
- const startDate = start
96
- ? chrono.parseDate(start)
97
- : dayjs().add(1, "hour").toDate();
+ const startDate = start ? chrono.parseDate(start) : new Date();
98
if (!startDate) {
99
return logAndQuit("Invalid start date");
100
0 commit comments