r5
r5 copied to clipboard
Normalize createdAt/updatedAt timestamps
At least in the modifications collection, some timestamps appear to be saved as NumberLong and others as ISODate
Can these be normalized with a single update query? I'm guessing it hasn't been done yet just out of caution about blanket-updating a production database.
See https://github.com/conveyal/analysis-ui/pull/878
Upon initial creation, objects have proper Date
s. But upon first inspection from the UI they have been translated to integer timestamps. This means that upon save/update, those timestamps will be stored as long
s instead of as a Date
.
At some point conversion is happening on the way to the UI.