Here is my problem, I want display a servlet message with the current
time, but I always get the "default" time zone although I create a
new TimeZone.
Ok, please tell me what I'm doing wrong, because i'm out of ideas....
THE SOURCE:
Locale aLocale = new Locale("es", "CL");
DateFormat dateFormatter= DateFormat.getDateTimeInstance
(DateFormat.FULL,DateFormat.FULL,aLocale);
TimeZone tz = TimeZone.getTimeZone("EST");
String myDate = dateFormatter.format((new
GregorianCalendar(tz,aLocale)).getTime());
System.out.println(myDate);
Thanks again!
--
__________________________________
Andr�s Wagner Acu�a
Estudiante Ing. Civil Industrial
Universidad Adolfo Iba�ez
ICQ: 39542425
__________________________________
"Programing today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying
to produce bigger and better idiots...
...So far the universe is winning".
-Rich Cook
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html