Search This Blog

Friday, September 6, 2013

Android change time zone - programmatically

i use the next code to change OS time zone ... seems to be working

AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
alarm.setTimeZone("Europe/Athens");

add the next permisiion :
android.permission.SET_TIME_ZONE


No comments: