def arrow_date_to_iso(instant: Arrow) -> str: # date-only for all day events # set to utc, make iso, remove timezone instant = arrow.get(instant.astimezone(tzutc)).format('YYYYMMDD') return instant # no TZ for all days
def arrow_to_iso(instant: Arrow) -> str: # set to utc, make iso, remove timezone instant = arrow.get(instant.astimezone(tzutc)).format('YYYYMMDDTHHmmss') return instant + 'Z'