Skip to content

Timezone

The SDK supports getting the current timezone on Android. TimeZone.current returns the device’s active timezone:

let tz = TimeZone.current
print(tz.identifier) // e.g. "America/New_York"
print(tz.secondsFromGMT()) // e.g. -18000