---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- Sajida, have you already checked what the Property (From System.getProperties) "user.timezone" gives you. I assume you use JDK 1.1 on Solaris. Then the timezone comes from an environment variable, TIMEZ I think, where for some strange reason you will get MET by default (GMT+3:30). Update that enviromnent variable for the user under which the JVM runs and it should be fixed. For Java 1.2.1 at least this seems to have changed. I haven't seen the same thing for that one. regards, Johan Philippe E&Y Consulting Sajida Kalsoom: Hello Users, can any body please tell me a very simple thing about java date on solaris when i use java.util.Date dt=new Date(); or java.sql.Date it adds five/four hours in current date. I have checked system time zone its correct.also display date/time is correct. whats the reason for this problem and how can it be solved. regards sajida. -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]
