Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

[V3] Update java.util.Date references to use java.time.OffsetDateTime instead #154

Closed christopheranderson closed 5 years ago

christopheranderson commented 5 years ago

The Resource class has a getTimestamp() method that returns java.util.Date. This is an antiquated Java API, and has been superceded in Java 8 with the new date / time APIs. In this case, the timestamp might be better represented as a LocalDateTime or Instant, or one of the offset / timezone specific variants.

(We'll standardize on java.time.OffsetDateTime)