Hello. There was a difficulty: I have nexus 7 with android 4.4.4. When I try to get time in the studio (and through System.currentTimeMillis and through Calendar.getInstance), the time returns to me with an hour lag. How can I fix this situation? At the same time, on android 5+ this is all right.

  • Maybe the whole thing in a time zone? - Eugene Krivenja
  • @EugeneKrivenja Yes, it was, it was exactly in the time zone. But essentially it does not change, how can you get the real time of the device? The same “alarm clock” doesn’t depend on the time zone ... - user214046
  • What does "real time" mean? There is a UTC time, there is a user time (UTC adjusted for the time zone from the user settings). - Eugene Krivenja

0