From 97c5acd6ba7a6b3c24946f7e68f6d4a854f6707c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 22 Feb 2021 22:59:02 +0100 Subject: [PATCH] [Vulcan/Hebe] Fix checking for current year. --- .../edziennik/data/api/edziennik/vulcan/data/VulcanHebe.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/VulcanHebe.kt b/app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/VulcanHebe.kt index 929a2230..ebbdb608 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/VulcanHebe.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/VulcanHebe.kt @@ -152,13 +152,13 @@ open class VulcanHebe(open val data: DataVulcan, open val lastSync: Long?) { fun isCurrentYear(date: Date): Boolean { return profile?.let { profile -> - return@let profile.dateSemester1Start >= date + return@let date >= profile.dateSemester1Start } ?: false } fun isCurrentYear(dateTime: Long): Boolean { return profile?.let { profile -> - return@let profile.dateSemester1Start.inMillis >= dateTime + return@let dateTime >= profile.dateSemester1Start.inMillis } ?: false }