Adds helper to convert from datetime to timestamp
Fixed bug when tring to JSON serialize a reading