Skip to content

Commit b6643ac

Browse files
author
Hall Liu
committed
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
1 parent a3bde81 commit b6643ac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

telecomm/java/android/telecom/Logging/EventManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import java.util.List;
3737
import java.util.Locale;
3838
import java.util.Map;
39+
import java.util.TimeZone;
3940
import java.util.concurrent.LinkedBlockingQueue;
4041
import java.util.stream.Collectors;
4142

@@ -268,6 +269,7 @@ public void dump(IndentingPrintWriter pw) {
268269

269270
public EventManager(@NonNull SessionManager.ISessionIdQueryHandler l) {
270271
mSessionIdHandler = l;
272+
sDateFormat.setTimeZone(TimeZone.getDefault());
271273
}
272274

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

0 commit comments

Comments
 (0)