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

Commit 4144a060 authored by Jake Hamby's avatar Jake Hamby
Browse files

Use the local timezone for CDMA SMS timestamps.

3GPP2 uses the local timezone for timestamps in SMS messages.
Use the local timezone instead of UTC when decoding bearer data.

Bug: 5123883
Change-Id: Iec25bcbb7862f0794ead80b6923c815b68bdd2a5
parent 32901b4f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import com.android.internal.util.BitwiseOutputStream;

import android.content.res.Resources;

import java.util.TimeZone;


/**
@@ -231,7 +232,7 @@ public final class BearerData {
    public static class TimeStamp extends Time {

        public TimeStamp() {
            super(Time.TIMEZONE_UTC);
            super(TimeZone.getDefault().getID());   // 3GPP2 timestamps use the local timezone
        }

        public static TimeStamp fromByteArray(byte[] data) {