[thelist] Time Zones and Locales in CF

John Pye john.pye at purplehouse.com
Tue Nov 28 07:41:58 CST 2000


Thanks for the suggestion, Bob. But I think I might have been asking the
wrong question.

> 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.
>

I have set my system clock to GMT. I want Cold Fusion to respect the setting
of the system clock. So when my system clock reads 12:00 AM, I want
TimeFormat(Now()) to give that same time, 12:00 AM.

At the moment it doesn't do that. It automatically translates to GMT-5h,
which I don't want it to do. I could hack a fix by changing ALL TimeFormat's
to LSTimeFormat -  but that would be kind of post-hoc, wouldn't it?

So I'm looking for some sort of permanent configuration change that fixes
this problem of Cold Fusion's assumed locale (it thinks it's in the States)-
perhaps it was a preference that was specified at installation time?

John Pye
www.creativebase.com






More information about the thelist mailing list