Advertisement
psi_mmobile

Untitled

Oct 18th, 2021
984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1.             Calendar cal = Calendar.getInstance();
  2.             cal.setTime(new Date(System.currentTimeMillis()));
  3.             TimeZone tz = TimeZone.getDefault();
  4.             Timestamp tstmp = new Timestamp(cal.getTimeInMillis() - tz.getRawOffset() - tz.getDSTSavings());
  5.             this.setAttribute("LmDate", tstmp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement