[thelist] Time Zones and Locales in CF

Rob Keniger rob at bigbang.net.au
Tue Nov 28 07:20:37 CST 2000


on 11/28/00 10:47 PM, John Pye at john.pye at purplehouse.com wrote:

> 
> A fairly simple question I hope: TimeFormat(Now()) in Cold Fusion gives me
> the Time in New York, GMT minus 5 hours, even though the software clock in
> Linux on the same machine gives our correct local time, according to GMT.
> 
> Is there some way of setting the time zone that Cold Fusion thinks it's in,
> separate from the operating system, that I haven't discovered?
> 

You're half way there - you need to use the SetLocale() function as you have
done, but you need to call the LSTimeFormat() function instead of
TimeFormat().

LSTimeformat() respects the locale setting, while TimeFormat() does not.

-- 

Rob Keniger

big bang solutions

<mailto:rob at bigbang.net.au>
<http://www.bigbang.net.au>





More information about the thelist mailing list