smartcar / java-sdk

Java client SDK for the Smartcar API.
https://smartcar.github.io/java-sdk
MIT License
20 stars 20 forks source link

Meta.getDataAge() returns an incorrectly parsed java.util.Date object #137

Open chadshowalter opened 10 months ago

chadshowalter commented 10 months ago

Consider this scenario.

So it's incorrect.

I note that if the JVM timezone is set to UTC, the parsing is correct. However, it's not reasonable to assume the user's JVM has to be set to UTC.

This problem could be addressed in different ways; I think using java.time classes would be best.