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

Commit b6643acd authored by Hall Liu's avatar Hall Liu
Browse files

Add timezone for Telecom event date formatting

Output event times in local time rather than in UTC for compatibility
with the rest of the timestamps in the bug report

Test: manual
Change-Id: I2d458f09aec635a43e3d0565e8f8da803124f368
parent a3bde812
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.stream.Collectors;

@@ -268,6 +269,7 @@ public class EventManager {

    public EventManager(@NonNull SessionManager.ISessionIdQueryHandler l) {
        mSessionIdHandler = l;
        sDateFormat.setTimeZone(TimeZone.getDefault());
    }

    public void event(Loggable recordEntry, String event, Object data) {