From a61ad36151c46fbbeef7420a7516d1deecbcab27 Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Sun, 10 Jul 2016 12:18:33 -0400 Subject: [PATCH] Add commented line with code to return relative time in responses --- .../frozenorb/apiv3/serialization/gson/InstantTypeAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/frozenorb/apiv3/serialization/gson/InstantTypeAdapter.java b/src/main/java/net/frozenorb/apiv3/serialization/gson/InstantTypeAdapter.java index d53c6ea..4a7ef24 100644 --- a/src/main/java/net/frozenorb/apiv3/serialization/gson/InstantTypeAdapter.java +++ b/src/main/java/net/frozenorb/apiv3/serialization/gson/InstantTypeAdapter.java @@ -13,7 +13,8 @@ public final class InstantTypeAdapter extends TypeAdapter { if (write == null) { writer.nullValue(); } else { - writer.value(write.toEpochMilli()); + //writer.value(write.toEpochMilli() - System.currentTimeMillis()); + writer.value(write.toEpochMilli()); } }