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

Commit 45e8820d authored by Danny Baumann's avatar Danny Baumann
Browse files

Fix event dates shifted by a day for time zones left of GMT.

Change-Id: I957cd4a184a0178d1120a7930596e72b3fc4ddc1
parent 1914011c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -741,9 +741,13 @@ public class FallbackSource extends ContactsSource {

        private CharSequence parseDate(Context context, CharSequence value) {
            Date date = EventDateConverter.parseDateFromDb(value);

            if (date != null) {
                return DateFormat.getLongDateFormat(context).format(date);
                java.text.DateFormat format = DateFormat.getLongDateFormat(context);
                format.setTimeZone(EventDateConverter.sUtcTimeZone);
                return format.format(date);
            }

            return value;
        }