From 623cf1d5829dc1743dd3f1fec18e795b0715e182 Mon Sep 17 00:00:00 2001 From: darthpaul Date: Sun, 24 Oct 2021 17:51:05 +0100 Subject: [PATCH] fix incorrect date after goto date in weekly view --- .../calendar/pro/fragments/WeekFragmentsHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragmentsHolder.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragmentsHolder.kt index 1c8d9ebf3..d175add18 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragmentsHolder.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragmentsHolder.kt @@ -179,7 +179,7 @@ class WeekFragmentsHolder : MyFragmentHolder(), WeekFragmentListener { val view = layoutInflater.inflate(R.layout.date_picker, null) val datePicker = view.findViewById(R.id.date_picker) - val dateTime = Formatter.getDateTimeFromTS(currentWeekTS) + val dateTime = Formatter.getUTCDateTimeFromTS(currentWeekTS) datePicker.init(dateTime.year, dateTime.monthOfYear - 1, dateTime.dayOfMonth, null) AlertDialog.Builder(context!!)