I am trying to get the updated timezone identifier for a cross-platform application. I have the Linux side handled, but am having difficulty finding information around how to get this on MacOS (not my native OS) using Objective-C (not my native language). (The application is written in Go, so the foreign calls need to be to Objective-C rather than Swift).
I have found the documentation for struct TimeZone
and autoupdatingCurrent
which look to be the things that I want.
It looks to me like I want to get autoupdatingCurrent.identifier
, but I am unable to find any clear example of how to do this. As far as I can see from the documentation, I should just be able to reference autoupdatingCurrent.identifier
to get the string, but this is not working for me, so I am obviously missing something.
Can someone either point me to good documentation for this, or point to/provide a brief example that I can learn from?