hi
I know the use of java script but i don't want to use it as it takes the machine time
which is not good as it may not be true that somebody has assigned correct date or
time in his machine.
Now about the SimpleDateFormat class, so i used that but it didn't worked. I made the
date object by giving it the japanese time zone and its locale and my machine is set
to GMT timezone. But it didn't worked.
Following is the code snippet.......
TimeZone tz = TimeZone.getTimeZone("UTC");
Calendar c = Calendar.getInstance(tz, new Locale("ja", "JP"));
System.out.println(c.getTime());
Now can anybody help why it doesn't work.
----- Original Message -----
From: "Sicaud Patrice" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 9:57 PM
Subject: Re: how to show timezone specific time
> I would say that Javascript is the only way to go since you do not know
> where your client is. Whatever you do, you ultimately depend on the client
> machine being configured for the correct time zone.
>
> Patrice Sicaud
> OCS Systems Development
> Phone 415-222-4347
> Fax 415-795-7921
> Page 800-481-1813
> SMTP [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
> -----Original Message-----
> From: Henrik Sternberg [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 15, 2001 1:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: how to show timezone specific time
>
> Do it with Javascript, that's the most simple way.
>
> check www.javascript.com on how to use the timefunctions.
>
> regards
>
> /henrik
>
> ----- Original Message -----
> From: "Bhushan Bhangale" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 15, 2001 9:42 PM
> Subject: how to show timezone specific time
>
>
> > Hi
> >
> > I am asking this question again because nobody has
> answered it before when I aksed it. I have a multi locale site
> including(US,UK,JP,FR,DE,MX,SW). It is running on Solaris machine which is
> set to GMT timezone. I want to show timezone specific time to the users.
> Suppose a person is seeing the site in japanese locale then he should see
> time according to the Japan TimeZone.
> >
> > An urgent reply would be a great help.
> >
> > thanks in advance
> >
> > Thanks & Regards
> > Bhushan Bhangale
> > Consultant
> > http://www.netacross.com
> > Chequemail.com - a free web based e-mail service that also
> pays!!!
> > http://www.chequemail.com
> >
> >
> ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Thanks & Regards
Bhushan Bhangale
Consultant
http://www.netacross.com
Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets