Fixes issue where times were not rendered correctly in json