Legacy | Set device time zone

  • Command: timezone

  • Subcommand: set

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android

Description

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. It is not supported for Android O devices.

Parameters

Name Value Default Description
deviceID*     The device for this command.
timezone*    

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

Example: Etc/GMT-8

* Mandatory parameter

Request &Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-06_07_18_52_341?operation=command&securityToken=<your_token>&command=timezone&subcommand=set&param.deviceId=6370E775&param.timezone=Asia/Jerusalem
Copy

JSON response

{
    "executionId":"john@perfectomobile.com_controller_16-11-06_07_18_52_341",
    "reason":"Success",
    "timer.elapsed":"94",
    "testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-06_07_18_52_341",
    "timer.ux":"0",
    "singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161106/controller_16-11-06_07_18_52_341.xml&ownerId=john@perfectomobile.com&sharingCode=33cbaa3f-6787-4ab3-ab67-c72938374b2d",
    "description":"Success",
    "timer.system":"94",
    "reportKey":"PRIVATE:controller/161106/controller_16-11-06_07_18_52_341.xml",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "timer.device":"0"}