def encode_custom(obj):
if isinstance(obj, datetime.datetime):<EOL><INDENT>return obj.astimezone(pytz.utc).strftime('<STR_LIT>')<EOL><DEDENT>raise TypeError(repr(obj) + "<STR_LIT>")<EOL>
ISO encode datetimes with less precision