Closed GoogleCodeExporter closed 9 years ago
Đúng là trên server mới đối DateFormat để đồng nhất mà ko
báo. Như vậy trong class Global sẽ sử dụng thông tin như sau:
public static DateFormat df = new SimpleDateFormat(NORMAL_DATE);
public static DateFormat dfFull = new SimpleDateFormat(
NORMAL_DATE_WITH_HOUR);
public static final Gson gsonDateWithoutHour = new GsonBuilder()
.setDateFormat(NORMAL_DATE).excludeFieldsWithExcludeAnnotation()
.create();
public static final Gson gsonWithDate = new GsonBuilder().setDateFormat(
NORMAL_DATE_WITH_HOUR).excludeFieldsWithExcludeAnnotation()
.create();
Original comment by vo.mita.ov
on 28 Sep 2010 at 2:29
Original issue reported on code.google.com by
condorhe...@gmail.com
on 28 Sep 2010 at 2:06