in src/main/java/org/eclipse/egit/github/core/client/AnyDateFormatter.java [19:31]
public Date deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
if (json instanceof JsonPrimitive) {
final JsonPrimitive primitive = (JsonPrimitive) json;
if (primitive.isNumber()) {
long timestamp = json.getAsLong();
if (timestamp > 10000000000L) {
return new Date(timestamp);
}
return new Date(timestamp * 1000);
}
}
return super.deserialize(json, typeOfT, context);
}