I need to set an alarm on a user’s phone. This is an android function, and the alarm takes the time to fire in System.currentTimeMillis() format. I want to set the alarm at 7pm on the user’s phone, but I don’t know what timezone the user has their phone set to.
How can I figure out what the equivalent time at 7pm for the current day is in UTC (currentTimeMillis()) ?
Thanks
1 Answer