0

I use Adobe LiveCycle for making PDF reports into a J2EE webapp.

I need to write the time of creation of document (hour and minutes). I tried 2 systems:

  • Java - side: I use this code:

return new SimpleDateFormat("HH:mm").format(Calendar.getInstance().getTime());

And, with a floating text in the Adobe Lifecycle, the printed time is 12:09 (correct)

  • Adobe - side: I use this code:

Date data = new Date();

in a internal JavaScript into document and, with a floating text in the Adobe LiveCycle, the printed time is 10:09 (uncorrect).

I see a difference of time of 2 hours. Why this difference?

Alexandru Deliu
  • 546
  • 3
  • 17
alepuzio
  • 1,382
  • 2
  • 28
  • 38

0 Answers0