> yes it sets the "locale". a locale isn't a timezone. what exactly do you
There isnt a direct way to Pull the Locale Time Zone in CFMX, you have use Native Classes to do this.
dateConvert() is NOT a clean solution..
Lets say you want to pull the Date/Time for "Australia/Melbourne" (EST)
To accomplish the above in the CFMX
1. Use dateConvert to GMT
2. Find the Time Difference and +/- to GMT to get the Date/Time for AUS - EST.
OR
Use Java Native Classes like
tz = createObject("Java", "java.util.TimeZone").getTimeZone("Australia/Melbourne");
df = createObject("java", "java.text.DateFormat").getDateTimeInstance();
df.setTimeZone(tz);
writeOutput(df.format(now());
This should really be implemented in CFMX with dateFormat() as an Overloaded Method.
dateFormat(now(), "DD-MM-YYYY", "Australia/Melbourne")
Joe Eugene
----- Original Message -----
From: Paul Hastings
To: CF-Talk
Sent: Monday, October 13, 2003 10:35 AM
Subject: Re: Setting Locale for Application
> > then what are you after with setLocale and LSDateFormat?
>
> I think u can convert the local time to GMT and +/- to get the desired
Regional Date/Time using CF
> but I was under the impression (setLocale and other International
functions) would allow you
> to dynamically set the Locale for the application using CFMX.
yes it sets the "locale". a locale isn't a timezone. what exactly do you
want to do?
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Setting Local for Application Joe Eugene
- Re: Setting Local for Application Paul Hastings
- RE: Setting LocalE for Application Joe Eugene
- Re: Setting Local for Application Paul Hastings
- Re: Setting Locale for Application Joe Eugene
- Re: Setting Locale for Application Paul Hastings
- Re: Setting Locale for Application Joe Eugene
- Re: Setting Locale for Applica... Paul Hastings
- Re: Setting Locale for Applica... Joe Eugene
- Re: Setting Locale for Applica... Paul Hastings
- Re: Setting Locale for Applica... Joe Eugene
- Re: Setting Locale for Applica... Paul Hastings
- Re: Setting Locale for Applica... Joe Eugene
- Re: Setting Locale for Applica... Paul Hastings
- RE: Setting Locale for Applica... Joe Eugene