Skip to content

Commit

Permalink
Add UTC offset to log readings
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed Jul 15, 2017
1 parent 29bc561 commit 8bbc7b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/edu/northwestern/cbits/anthracite/Logger.java
Expand Up @@ -195,6 +195,10 @@ public boolean log(String event, Map<String, Object> payload)
payload.put("os_version", Build.VERSION.RELEASE);
payload.put("os", "android");

long utcOffset = TimeZone.getDefault().getOffset(System.currentTimeMillis());

payload.put("utc_offset_ms", utcOffset);

if (prefs.getBoolean(Logger.LOGGER_ENABLED, Logger.LOGGER_ENABLED_DEFAULT))
{
String endpointUri = prefs.getString(Logger.LOGGER_URI, null);
Expand Down

0 comments on commit 8bbc7b2

Please sign in to comment.