Android Question Problem with getting ticks value

trueboss323

Active Member
Licensed User
Longtime User
Hi, I'm trying to get the Date/Time ticks from a dialog. When i test this on 2 devices it gives me different results for some reason.

Here's how I do this:
In the dialog picker for both devices, I select the date & time to be Janurary 24 2018, 7:20 PM. When i get the value in ticks, they both give me different results. When I enter it on my Sony Xperia M2 device (Android 5.0.1) it returned the correct ticks value "1516846838000", when I convert it myself I get the 7:20 PM time. Now when I try the same thing on a ZTE Valet (4.1.1) , it returns the ticks "1516843238000" , trying to convert it gives me "Janurary 24, 2017 6:20 PM" . Therefore for some reason i am getting it 1 hour earlier on the ZTE. I checked the date/time settings on the device and I didn't have any daylight savings enabled, plus it showed me the correct time in the notification area. Just to verify I tested the same thing on the emulator running 6.0 , the result gave me "1516846855000". Any idea why this could be happening?
 
Top