我已经记录了发布并从服务器获得响应所花费的时间。但时间似乎比我的系统时钟早 4 小时。
我使用的代码是:
String posttime = java.text.DateFormat.getTimeInstance().format(Calendar.getInstance().getTime());
Log.i("Time at which HTTP POST was sent",""+posttime );
日志中的输出是:
发送 HTTP POST 的时间 (323):晚上 8:24:53,而不是下午 4:24:54。
任何输入将不胜感激。