Thanks to visit codestin.com
Credit goes to github.com

Skip to content

getDeviceTime(String format) doesn't format the system time #14141

@VitorJeremias

Description

@VitorJeremias

The problem

Method getDeviceTime(String format) isn't formatting the time correctly.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.15.1
  • Desktop OS/version used to run Appium: macOS Mojave 10.14.6
  • Mobile platform/version under test: Android 9
  • Real device or emulator/simulator: emulator
  • Appium CLI or Appium.app|exe: CLI

Code To Reproduce Issue [ Good To Have ]

androidDriver.getDeviceTime("HH:mm");

I was expecting to get:
16:00
but got this:
2020-04-02T16:00:20-03:00 (which I think is the default ISO8601)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions