Updating User TimeZone

We are trying to update user timezones however we are unsure how to pass the timezone name to the REST api.

I tried passing 'UTC-5' as a TimeZone, however the REST api expects the parameter to be a double, and TimeZoneID accepts a string. Is this correct?

Parents
  • Former Member
    +1 Former Member

    TimeZoneId compares to the TimeZoneInfo.Id that .Net provides.  TimeZone is the UtcOffset and it will match to the first time zone with that offset.  So you could get the incorrect time zone if more than one share the same offset.  Also if you provide an offset that does not match it will truncate the minutes and look for a time zone with the same hour offset.

Reply
  • Former Member
    +1 Former Member

    TimeZoneId compares to the TimeZoneInfo.Id that .Net provides.  TimeZone is the UtcOffset and it will match to the first time zone with that offset.  So you could get the incorrect time zone if more than one share the same offset.  Also if you provide an offset that does not match it will truncate the minutes and look for a time zone with the same hour offset.

Children