Set time zone command

Sets the device time zone.

Before changing the device time zone, verify that the Automatic time zone setting is turned off on the device. The time zone of the device will automatically be reset when the device is closed by Perfecto.

The command fails if the timezone parameter does not comply with the tz database format.

Restriction: This command is supported for devices running Android 7.x or earlier.

Parameters

Name Type Possible values Description

Device ID*

Device

 

The device for this command. By default, this is the device under test (DUT).

timezone*

   

The time zone to be set. Format follows tz database convention.

Example: Etc/GMT-8

Comment

String

 

Adds a comment to the script.

On-fail Result*

Condition

Ignore | Break | Continue | Abort | Catch

The behavior when the command fails.

* Mandatory parameter