Re: Timezone

2005-09-18 Thread Martin Gainty
MAIL PROTECTED]> Sent: Sunday, September 18, 2005 11:58 AM Subject: RE: Timezone I've found out that the problem was with default timezone when JBoss was started within Eclipse. If I run it standalone with run.bat - everything works OK... I didn't have time to look for reason of t

RE: Timezone

2005-09-18 Thread Wojciech Ciesielski
I've found out that the problem was with default timezone when JBoss was started within Eclipse. If I run it standalone with run.bat - everything works OK... I didn't have time to look for reason of this strange behaviour - I've added -Duser.timezone=Europe/Warsaw to my JRE VM params in Eclipse and

Re: Timezone

2005-09-18 Thread Martin Gainty
dobry Wojciech //This should work TimeZone timeZone = TimeZone.getTimeZone("Europe/Warsaw"); //If "Europe/Waraw" is not valid this will always work //TimeZone timeZone = TimeZone.getTimeZone("GMT+1"). GregorianCalendar cal = new GregorianCalendar(timeZone, Locale.EU); int year = cal.get(Calenda