Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DateTimeZone GMT = new FixedDateTimeZone("GMT", "GMT", 0, 0);
- DateTimeFormatter formatter = DateTimeFormat.forPattern("EEE, dd MMM yyyy HH:mm:ss z")
- .withLocale(Locale.US)
- .withZone(GMT);
- String date = formatter.print(new Date().getTime());
- System.out.println("date = " + date);
- // BEFORE upgrade to java-8u65
- // date = Mon, 26 Oct 2015 13:42:51 GMT
- // AFTER upgrade to java-8u65
- // date = Mon, 26 Oct 2015 13:52:20 +00:00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement