wrong dates

Hi all,

when I run a java snippet node like this:

DateFormat f = new SimpleDateFormat("yyyyMMdd");

out_DATE2 = f.parse(c_DATE1);
n.warn("DATE1="+c_DATE1+"------ DATE2="+out_DATE2);

I see:

1) written on the console

DATE1=20110831------ DATE2=Wed Aug 31 00:00:00 CEST 2011

which is exactly what I expected

2) written on the output table


20110831 2011-08-30T22:00:00.0

which is NOT what I expected.

Could anyone please help me ? Which is the correct statement I have to use ? 

I have also noted that forcing the timezone in the snippet like this


has effect also on all the other nodes of all the workflows.






Hi Nik, 

Have you tried using your current timzone in the setDefault method?