Fix rfc formatting for localized datetimes