Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Calendar cal = Calendar.getInstance();
- cal.setTime(new Date(System.currentTimeMillis()));
- TimeZone tz = TimeZone.getDefault();
- Timestamp tstmp = new Timestamp(cal.getTimeInMillis() - tz.getRawOffset() - tz.getDSTSavings());
- this.setAttribute("LmDate", tstmp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement