Я загружаю некоторые данные JSON из веб-службы. В этом JSON у меня есть значения даты и времени. Все в UTC. How can I parse this date string so the result Date object is in the current locale?
For example: the Server returned "2011-05-18 16:35:01" and my device should now display "2011-05-18 18:35:01" (GMT +2)
My current code:
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date myDate = simpleDateFormat.parse(rawQuestion.getString("AskDateTime"));