techfromsage / tripod-php

Object Graph Mapper for managing RDF data in Mongo
MIT License
29 stars 4 forks source link

Not storing millisecond precision when setting dates #116

Closed rgubby closed 8 years ago

rgubby commented 8 years ago

When creating new UTCDateTime objects for storing the created, updated and other date formats, we're losing the precision beyond milliseconds.

This is because we have a bracket in the wrong place and we're multiplying after rounding rather than before.