Week number issue when executing under a Linux Server
Hi,
I created a job in Talend under windows that works well if I execute it in my PC. When I export it under the Linux Server of my company, I have an issur with the week number.
The job is the get a csv file on a server and to put it on a mysql database.
The name of the csv file is weekly_counters_ + week number (actually, the last week number)
The tftpGet component have this mask file :
"weekly_counters_" +TalendDate.formatDate("yyyyww",TalendDate.addDate(TalendDate.getCurrentDate(),-1,"dd")) + ".csv"
The job should be execute each monday on the past week data.
For example if we are in week 10 on the 2011-03-07, the file name on the server is "weekly_counters_201109.csv".
So, if it starts from my pc, it works well and on the linux server if have the following error message :
java.io.FileNotFoundExeption : c:/weekly_counters_201110.csv
I guess it is an issue on the Linux java environnement configuration but I wanted to know if I can do something on the Talend part to force java to use the right Calendar? If it is not possible what should I do the the java of the server?
Thank you very much for any help.
Regards,
Patrick V
Thanks. Unfortunately the result is the same on the server instead I specify the calendar is a gregorian one. Very weird. I let you know if I found out what was wrong. Regards PV
Yes, thanks. On the Linux server, il I put "date +W%", I have the good week number. It is in the java that the week number is wrong
.
Regards
Patrick V