Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/timely/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
specified, a default day of Sunday and a default hour and minute of
0 is used. Filters available: at, on, each, start-time, end-time"
[& filters]
(apply (partial create-schedule 0 0 :all :all 0) filters))
(apply (partial create-schedule 0 0 :all :all :sun) filters))

(defn monthly
"Create a schedule that runs once every month. Optionally specify
Expand Down
3 changes: 2 additions & 1 deletion test/timely/test/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@
(is (= "* * * * *" (schedule-to-cron (each-minute (start-time 0) (end-time (* (dates-coerce/to-long (dates/now)) 2))))))
(is (= "* * * * *" (schedule-to-cron (each-minute
(start-time (to-utc-timestamp (dates/date-time 2012 5 15 11 42)))
(end-time (to-utc-timestamp (dates/date-time 2012 5 15 11 43))))))))
(end-time (to-utc-timestamp (dates/date-time 2012 5 15 11 43)))))))
(is (= "0 0 * * 6" (schedule-to-cron (weekly (on (day-of-week :sat)))))))