macromedia.coldfusion.getting_started
[Top] [All Lists]

Re: PST to UTC

Subject: Re: PST to UTC
From: PaulH **AdobeCommunityExpert**
Date: Mon, 16 Mar 2009 15:25:31 +0700
Newsgroups: macromedia.coldfusion.getting_started


Azadi wrote:
doesn't DateConvert() cf function work for you?
details are in CFML Reference - download from adobe.com if you do not
have one.

unless the server's in PST tz no, it won't convert correctly. cf sees all datetimes as being in the server tz so when you have datetimes on the DST boundary, those datetimes will never exist, ie when PST becomes PDT (again depending on the server tz).

for tz casting have a look at:

http://www.sustainablegis.com/projects/tz/testTZCFC.cfm

and maybe read some of these for some of the joys of working w/tz:

http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=cat&catid=162AEDB4-20ED-7DEE-2A6CF1B79AC2E03A

<Prev in Thread] Current Thread [Next in Thread>