When logging to the console, the timestamp inside the MessageDetails object is not used. There is a risk that the timestamp shown in the console (provided by the default behaviour for NSLog(…) is very slightly different from that stored in the database.