Skip to Content
0
May 23, 2014 at 08:40 PM

java.sql.Time.toString() Problem

52 Views

Hi all,

I'm having problems using java.sql.Time.toString():


I have an input field pointing to Time typed context attribute, getting it from and printing it on the screen as a message with the following lines of code:

Time t1 = wdContext.currentTimeElement().getTimeIn();
wdComponentAPI.getMessageManager().reportSuccess("Time: "+t1.toString());

The message shows the Time minus thirty minutes. I also print the TimeZone.getDefault() value and the app is showing this:

I'm on Caracas/Venezuela where we have GMT-4:30 Time Zone, the app is running on a server NW 7.3 SP10 with SAPJVM 6 build 6.1.065.

Does anyone knows what am I missing?

Regards,

Gregory.

Attachments

Time_Error.PNG (10.0 kB)