Hi all
I´m on a swedish machine, using swedish win xp, browser etc. I´m
having some issues using DateTimeFormat.
Reading the apidocs for DateTimeFormat, using getFormat "Returns a
format object using the specified pattern and the date time constants
for the default locale."
However, I always seem to get a US locale.
For example:
Label dayLabel = new Label();
Date date = new Date();
dayLabel.setText(DateTimeFormat.getFormat("EEEE").format(date));
The text for my label is now set to Friday, rather than Fredag which
is what I would expect from my default locale.
Using the calender class on the serverside gives me the correct value:
cal.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG,
Locale.getDefault());
My browers locale is swedish for sure, all static text on
http://groups.google.com/group/Google-Web-Toolkit/ is in swedish!
Am I doing something wrong here?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---