The default time zone for the current app.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
default time zone has been set, the current system time zone is used. If the current system time zone cannot be determined, the GMT time zone is used instead.
default time zone is used by the app for date and time operations. You can set it to cause the app to run as if it were in a different time zone. Setting the
default property clears any value that was previously set.
If you access the
default class property, assign its value to a variable, and set a new
default time zone, the object stored in the variable doesn't update to reflect the new
default time zone. Contrast this behavior with that of the
local class property, which returns a proxy object that always reflects the current system time zone.