Fixing cloudformation time stamps when API returns milliseconds