Advertisement
NLinker

Upgrade fail

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