Guest User

Untitled

a guest
Aug 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. unexpected results with GMT parsing in java
  2. SimpleDateFormat dformat = new SimpleDateFormat("yyyyMMdd-hh:mm:ss");
  3. TimeZone gmt = TimeZone.getTimeZone("GMT");
  4. dformat.setTimeZone(gmt);
  5. Date d = dformat.parse(time);
Add Comment
Please, Sign In to add comment