Storage: Fix timestamps being stored incorrectly.