Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.TimeZone; public class Main { /** * Always get Taipei time (GMT+8) * * @return Calendar */ public static Calendar getNowTime() { //Log.d(TAG, Locale.TAIWAN.toString()); //return Calendar.getInstance(Locale.TAIWAN); return Calendar.getInstance(TimeZone.getTimeZone("GMT+8")); } }