Skip to content

Commit e6ab0b6

Browse files
committed
Fix java.time to Joda conversion
We were providing the wrong type of Instant.
1 parent bd295fb commit e6ab0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpretixsync/src/main/java/eu/pretix/libpretixsync/check/AsyncCheckProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ class AsyncCheckProvider(private val config: ConfigStore, private val dataStore:
11651165
get() {
11661166
// To avoid Joda Time code in the models, handle the case where we don't have a datetime value from JSON here
11671167
return if (this.datetime != null) {
1168-
DateTime(this.datetime.toInstant())
1168+
DateTime(this.datetime.toInstant().toEpochMilli())
11691169
} else {
11701170
val date = db.checkInQueries.selectById(this.id).executeAsOne().datetime
11711171
DateTime(date)

0 commit comments

Comments
 (0)