----------------------------------------------------------------
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!!!
----------------------------------------------------------------

>      can you please tell me how i can correct this i tried to set time zone
> through  front panel calander.

I can't find the fix I wrote -- strange... I just checked if the timezone
was MET, and if yes, I corrected the timezone.

        String zone = System.getProperty("user.timezone");
        // Workaround for a JDK 1.1 bug. MET means GMT+01:00,
        // not GMT+03:30.
        if (zone.equals("MET")) {
            zone = "ECT";
        }
        // then I use zone like in
        DateFormat df = date_format;
        df.setTimeZone(java.util.TimeZone.getTimeZone(zone));
        return df.format(date);
 
This fix is not generic, it's just for Solaris and JDK 1.1 (and might break
things for Persians ;-))

Peter

-- 
URBAN Peter                       Mail:  [EMAIL PROTECTED]
Federal Institute of Technology   WWW:   http://lsewww.epfl.ch/urban
EPFL-DI-LSE, office INF 233       Phone: (+41 21) 693 5354
CH-1015 Lausanne, Switzerland     Fax:   (+41 21) 693 6770



--
--------------------------------------------------------------
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]

Reply via email to