Azure / azure-functions-cosmosdb-extension

Extensions to support CosmosDB functionality on Azure Functions
MIT License
6 stars 7 forks source link

Why is "BsonTimestamp" used for MongoLease "Timestamp"? #13

Open asos-martinsmith opened 4 months ago

asos-martinsmith commented 4 months ago

This is documented as for MongoDB internal use https://www.mongodb.com/docs/manual/reference/bson-types/#timestamps

For storing a DateTime the Date datatype is the one to use (I'm unclear why there is the 18000 offset applied but probably this would avoid that too).