Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jun 17, 2019 15:37

Purpose

  • 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 the Perfecto Lab.
  • The command fails if
    • The timezone parameter does not comply to the format.
Note: Command supported for Android devices running OS 7.x or earlier. Not supported for Android O devices.


Usage

browser.perfSetTimezone(timezone)

Parameters

NameTypePossible ValuesDescription
timezoneString
The time zone to be set. Format follows tz database convention.
Example: To set the time is Mexico City use America/Mexico_City and NOT Central time.

Return Value

None

Exceptions

None

Examples

Java sample
this.Then(/^I set the device timezone to  Mexico City$/, function () {
    browser.perfSetTimezone('America/Mexico_City')
})