Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c1e159b5 authored by EsmaeeilMoradi's avatar EsmaeeilMoradi Committed by Michael Bestas
Browse files

Timeisinvalid (#1093)



Cheeked toMillis method when return -1 in time zone (for example 22 march 2021 Tehran,Iran) when no exist time(DST).

Co-authored-by: default avatarGitsaibot <Gitsaibot@users.noreply.github.com>
Change-Id: I9e82d1991c0c7a89dbc465412ee1203cebc44894
parent 1c1c5b28
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1246,6 +1246,13 @@ public class AllInOneActivity extends AbstractCalendarActivity implements EventH
                mBackToPreviousView = false;
            }

            // Check toMillis method for the value -1 and if yes add one hour.
            // This prevents the date "1970" from being displayed on the day of the
            // daylight saving time changeover when you tap on the hour that is skipped.
            if (event.startTime.toMillis(true) == -1) {
                event.startTime.set(0, 0, 1, event.startTime.monthDay, event.startTime.month, event.startTime.year);
            }

            setMainPane(
                    null, R.id.main_pane, event.viewType, event.startTime.toMillis(false), false);
            if (mSearchView != null) {