getLocalTimezone static method
IANA zone of the device, e.g. "Asia/Tehran" (reported by the OS; guessed from the offset when unknown).
Implementation
static String getLocalTimezone() {
final String? native = UDevice.isReady ? UDevice.timeZone : null;
if (native != null && native.contains("/")) return native;
final DateTime now = DateTime.now();
return uGuessIanaZone(now.timeZoneName, offsetText());
}