Skip to content

Commit

Permalink
For #393 - on reports take user's timezone into account when printing…
Browse files Browse the repository at this point in the history
… dates and times
  • Loading branch information
vitalidze committed Dec 10, 2015
1 parent 917c6fe commit c6b02b1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ public final void generate(Report report) throws IOException {
: TimeZone.getTimeZone(currentUser.getUserSettings().getTimeZoneId());
Locale locale = new Locale(getLocale());
dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", locale);
dateFormat.setTimeZone(timeZone);
longDateFormat = new SimpleDateFormat("d MMM yyyy", locale);
longDateFormat.setTimeZone(timeZone);

renderer.start(report);
generateImpl(report);
Expand Down

0 comments on commit c6b02b1

Please sign in to comment.