Hayes, Kyle D said the following on 9/1/2006 10:19 AM:
Well to get a Universal Time from coldfusion you use the following:
<cfset utc=DateConvert("local2utc",now())>
Date/Time: <cfoutput>#utc#</cfoutput>
So you could probably place this in your setter for the date field?
Believe it or not - DateConvert() is broken!  It does not account for time zones that observe Daylight Saving which makes the conversation an hour off for part of the year.  The only way around it at this time is to run your server in UTC or use Java and create an epoch.  Paul Hastings is the man to talk to about this.

.Perter

-- 
Peter J. Farrell - Maestro Publishing
http://blog.maestropublishing.com
--
Co-Host of the ColdFusion Weekly Podcast
http://www.coldfusionweekly.com




-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to