Monday, 24 October 2022

Why AlarmClockInfo is earlier than the act?

I was trying to get the next alarm clock, by the following which returns the next clock timestamp of utc wall time.

val alarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
val next = alarmManager.nextAlarmClock.triggerTime

If the next clock is at 19:00 of tomorrow, the next will result of 18:00 of tomorrow, what is the difference of utc wall time and utc time, I have googled for nothing.



from Why AlarmClockInfo is earlier than the act?

No comments:

Post a Comment