Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(timestamp): getTimestamp support times beyond 2038
* Fix getTimestamp for times beyond 2038 Avoid treating timestamps with the most significant bit set as negative. The mongodb documentation describe the timetsamp portion of objectids as 'seconds since the unix epoch', so this seems to be the correct behaviour, although I cannot find a formal specification for it.however this is technically a breaking change if people were relying on timestamp values before 1970. * use readUInt32BE instead of bit twiddling * remove comment that no longer applies * add test case
- Loading branch information