Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding events not working when Calendar converted from java.time #465

Open
MrStahlfelge opened this issue Jun 11, 2024 · 0 comments
Open

Comments

@MrStahlfelge
Copy link

Event added in the following way is not showing:

val localDate = LocalDate.now() // java.time
val calendar = GregorianCalendar.from(atStartOfDay(ZoneId.systemDefault()))
val calendarDay = CalendarDay(calendar)
calendarDays.add(event)

It is showing if it is added the following way:

val localDate = LocalDate.now() // java.time
val calendar = Calendar.getInstance().apply { time = Date.from(atStartOfDay().toInstant(ZoneOffset.UTC)) }
val calendarDay = CalendarDay(calendar)
calendarDays.add(event)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant