code: private String encodeDate(TimeZone browserTZ, TimeZone targetTZ, Date utcDate) {
          return "new Date(" + DateUtils.toLocalDate(browserTZ, targetTZ, utcDate) + ")";
      }
docs: convert from UTC to locale date