---
title: local
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nstimezone/local
---

# local

An object that tracks the current system time zone.

## Declaration

```swift
class var local: TimeZone { get }
```

## Discussion

Discussion Use this property when you want an object that always reflects the current system time zone. Contrast this behavior with that of the system class property, which has its value cached until you manually clear it by calling the resetSystemTimeZone() method. important: In macOS High Sierra and later, iOS 11 and later, tvOS 11 and later, and watchOS 4 and later, the local class property reflects the current system time zone, whereas previously it reflected the default time zone. Although the time zone obtained here automatically updates with the system, it provides no indication when system settings change. To receive notification of time zone changes, add an observer to the NSSystemTimeZoneDidChange notification by using the addObserver(_:selector:name:object:).

## See Also

### Working with System Time Zones

- [system](foundation/nstimezone/system.md)
- [resetSystemTimeZone()](foundation/nstimezone/resetsystemtimezone().md)
- [default](foundation/nstimezone/default.md)
