Preserve event-local timestamp timezone
This commit is contained in:
@@ -13,6 +13,7 @@ object NotificationLogEntryJson {
|
||||
JSONObject()
|
||||
.put("id", entry.id)
|
||||
.put("recordedAtEpochMillis", entry.recordedAtEpochMillis)
|
||||
.put("eventTimeZoneId", entry.eventTimeZoneId)
|
||||
.put("packageName", entry.packageName)
|
||||
.put("appName", entry.appName)
|
||||
.put("action", entry.action.name)
|
||||
@@ -29,6 +30,7 @@ object NotificationLogEntryJson {
|
||||
NotificationLogEntry(
|
||||
id = entry.getString("id"),
|
||||
recordedAtEpochMillis = entry.getLong("recordedAtEpochMillis"),
|
||||
eventTimeZoneId = entry.optString("eventTimeZoneId").takeIf { it.isNotEmpty() },
|
||||
packageName = entry.getString("packageName"),
|
||||
appName = entry.getString("appName"),
|
||||
action = NotificationAction.valueOf(entry.getString("action")),
|
||||
|
||||
Reference in New Issue
Block a user