Android AlarmManager and DST / Timezone / Time change?

I am encoding an alarm application, and I would like to know what happens when I set some alarm using the AlarmManager, for example, at 2:59 (this is not my alarm time, this is only the time WHEN I set some alarm) and at 3:00 in the morning there will be an automatic change of time from summer time to winter (DST). What happens to my planned alarm? I did not find anything in the documents, and it is not so easy to check, at least I have to change the dates and wait a few hours ... I'm not so patient;)

The next problem. I was also curious what happens to my alarms set with AlarmManager when the user changes the time zone. This was pretty easy to verify, and I found that the android is pretty smart and automatically carries the alarm. Therefore, when in my time zone, for example, 9:00, and I set the alarm at 10:00, and set the time zone (+1 hour), when the actual time is 10:00, the android reassigns my alarm until 11:00, as expected. This is very good, however I did not find anything in the docs ...

Does anyone have more official information? thank

+5
source share
2 answers

RTC RTC_WAKEUP System.currentTimeMillis() , UTC , , , ..

+10

. , . , ( )

+3

All Articles