Skip to content

Commit 2cd825e

Browse files
committed
more bugfixes
1 parent 5ba9ce8 commit 2cd825e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/witch_clock/calendar.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@
271271
(->> dawn-to-dawn
272272
(filter
273273
(fn [[_cycle-i [dawn _next-dawn]]]
274-
(is-after dawn dt)))
274+
(is-before dawn dt)))
275275
(map
276276
(fn [[cycle-i [_dawn _next-dawn]]]
277277
[(inc cycle-i) [_dawn _next-dawn]]))
278-
first)
278+
last)
279279
dusk
280280
(->> days
281281
(filter
@@ -307,8 +307,8 @@
307307
(->> sorted-moon-phase-dt
308308
(filter
309309
(fn [[_month _phase phase-dt]]
310-
(is-before phase-dt dawn)))
311-
first)
310+
(is-before dawn phase-dt)))
311+
last)
312312
[_month _phase month-dt]
313313
(->> sorted-moon-phase-dt
314314
(filter

0 commit comments

Comments
 (0)