Skip to content

Commit

Permalink
use UTC for calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis authored and westnordost committed Sep 15, 2023
1 parent e300eaa commit 596842b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class DatesActiveDrawable(

// grid + months
for (i in 0..datesActiveRange) {
val date = time.toLocalDate()
val date = time.toLocalDateTime(TimeZone.UTC).date

val y = (height - 1) - (i + dayOffset) % height
val x = (width - 1) - floor(((i + dayOffset) / height).toDouble()).toInt()
Expand Down

0 comments on commit 596842b

Please sign in to comment.