Appium timezone and time

I want to know the connected device timezone and its time format with am/pm.

@mykola-mokhnach - I couldn’t retrieve a device local time such as am or pm format by calling the following getDeviceTime function. I want to know the cloud device or connected device time then which function should I use to fetch it?

The format argument can be used to customize the resulting string format. Isn’t it working?

Sorry can u explain it in detail. getDeviceTime(format) is that r u saying?
how will i get to know about the device timezone?