Skip to main content

Timezone · SetTimezone

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read the device timezone, or change it. These call app_timezone.

Timezone​

func (d *Device) Timezone(ctx context.Context) (string, error)

Timezone reports the device timezone.

SetTimezone​

func (d *Device) SetTimezone(ctx context.Context, tz string) error

SetTimezone changes the device timezone, confirmed by reading it back. Takes an IANA name such as "Asia/Tokyo"; an unknown one is accepted by the device and ignored, which the check catches. Works on real hardware.

Examples​

Move the device to Tokyo time​

if err := dev.SetTimezone(ctx, "Asia/Tokyo"); err != nil {
return err
}

The same call from the command line, mobium timezone Asia/Tokyo, printed on an Android 15 emulator:

Asia/Tokyo (was America/Los_Angeles)
BeforeAfter
Before: mobium timezone Asia/Tokyo on an Android 15 emulatorAfter: mobium timezone Asia/Tokyo on an Android 15 emulator

mobium timezone Asia/Tokyo on an Android 15 emulator