mongodb/mongo-php-driver — pull request #268 by derickr (2013-01-15 16:35:02+00:00)
Title: Fixed MongoDate serialisation and deserialisation with negative timestamps.

Apparently MongoDB uses the Euclidean modulo operator instead of C's truncated
modulo operator. This is difficult to test automatically, as calling out to the
mongo shell is impractical.

I have tested with a range of numbers, including ones close to the Epoch.