function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SoleesSolees 

User TimeZone iOS

Hi there friends, does anyone knows how to get User TimeZone offset with the Mobile SDK?

 

thanks

Best Answer chosen by Admin (Salesforce Developers) 
jhersh1jhersh1

2 ways I can think of, but each may have different results:

 

  • Query the timezone field on the running user's user record
  • Use [NSLocale currentLocale] to use device settings