It returns Server Date/Time Not the Locale Date/Time.
<cfoutput>
Default<br>
#GetLocale()#<br>
#LSDateFormat(now(),"MM-DD-YYYY")# #LSTimeFormat(now(),"hh:mm")#<br><br>
Setting to Australian(English (Australian))...<br>
<cfset oldlocale = setLocale("English (Australian)")><br>
#GetLocale()#<br>
#LSDateFormat(now(),"MM-DD-YYYY")# #LSTimeFormat(now(),"hh:mm")#<br>
</cfoutput>
Joe
-----Original Message-----
From: Paul Hastings [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 4:02 PM
To: CF-Talk
Subject: Re: Setting Local for Application
> Is there a way to set Local Correctly for each application so that
> 1. DATE and Time reflect the Local
> 2. Currency Values reflect the Local
>
> The below doesnt work.
> <cfset setLocale("English (Australian)")>
> <cfoutput>#LSDateFormat(now() ,"MM-DD-YYYY - hh:MM")#</cfoutput>
well it should. since you seem to be serving your apps server by server,
just stuff setLocale() with the proper locale in each servers'
application.cfm. if you're going to format like that though, i don't think
you'll need to use LS functions. they all run off gregorian calendars
anyways.
btw thats localE.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Setting Local for Application Joe Eugene
- Re: Setting Local for Application Paul Hastings
- Re: Setting Local 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