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)