I have tried using GMT as well. no use. Something is wrong in my understanding of how this works. Can anyone help?
On Nov 29, 5:21 pm, Kostya Vasilyev <[email protected]> wrote: > This looks suspect: > > > TimeZone.getTimeZone("UTC") > > Unless you are actually in that time zone.... > > -- Kostya > > 29.11.2010 19:00, Tez пишет: > > > > > Hi, > > > I need to set an alarm clock for, say, 9AM > > > so I am getting a calendar instance > > > Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC")); > > cal.set(2010, 11, 29, 9, 0, 0); > > > and then I call AlarmManager.set like: > > > mAlarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTime().getTime(), > > pi); > > > where pi is a pending intent for a broadcast message. > > I do not receive a callback at the specified time. > > > How do I correct this? > > > Cheers, > > Earlence > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

