Correct treatment of timestamps as doubles

closes #222