Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Laki Sik committed Sep 20, 2016
1 parent e88b1e3 commit bc433cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/ahancer/rr/utils/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.util.TimeZone;
import java.util.stream.Stream;

import org.springframework.beans.BeanUtils;
Expand Down Expand Up @@ -39,6 +40,7 @@ public static Date parseJacksonDate(String utc) throws ParseException {
return null;
}
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
formatter.setTimeZone(TimeZone.getTimeZone("Asia/Bangkok"));
return formatter.parse(utc.replaceAll("Z$", "+0000"));
}

Expand Down

0 comments on commit bc433cf

Please sign in to comment.