postEncode expect all values to be strings

Therefore time should be converted to a string first.