Closed towerofnix closed 6 years ago
Not an expert, but more accuracy seems better. And it's not like that should affect clients at all. They can show times however they'd like.
Provided the API docs continue to use Unix time (ie. seconds), I'm fine with it.
You can return a float if you really want to in the API - dateCreated: 1500008.125
is okay.
Right now some tests are failing because the order of messages sent in the same second isn't obvious to the server - as far as it's concerned, those messages were sent within the same instant. And they were sent in the same unit of time - since our unit of time is whole seconds.
Would it be okay to simply remove the
Math.round
ing of(javascript date) / 1000
? That would keep the accuracy to the millisecond, but still use seconds as the unit equal to 1.Ping @heyitsmeuralex for thoughts; this is an extremely easy fix.