1 parent 5ba9ce8 commit 2cd825eCopy full SHA for 2cd825e
1 file changed
src/witch_clock/calendar.cljs
@@ -271,11 +271,11 @@
271
(->> dawn-to-dawn
272
(filter
273
(fn [[_cycle-i [dawn _next-dawn]]]
274
- (is-after dawn dt)))
+ (is-before dawn dt)))
275
(map
276
(fn [[cycle-i [_dawn _next-dawn]]]
277
[(inc cycle-i) [_dawn _next-dawn]]))
278
- first)
+ last)
279
dusk
280
(->> days
281
@@ -307,8 +307,8 @@
307
(->> sorted-moon-phase-dt
308
309
(fn [[_month _phase phase-dt]]
310
- (is-before phase-dt dawn)))
311
+ (is-before dawn phase-dt)))
312
[_month _phase month-dt]
313
314
0 commit comments