Created
March 25, 2014 10:40
Revisions
-
bennadel created this gist
Mar 25, 2014 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ <!--- Get the current time. ---> <cfset dtNow = Now() /> <!--- Convert the date to GMT using DateAdd() and DateConvert() to make sure that they are the same. ---> DateAdd(): #DateAdd( "s", GetTimeZoneInfo().UTCTotalOffset, dtNow )# <br /> DateConvert(): #DateConvert( "Local2UTC", dtNow )# <br /> This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <!--- Get the GMT time. ---> <cfset dtGMT = ParseDateTime( GetHTTPTimeString( Now() ) ) /> <!--- Convert from GTM back to local time. ---> Now: #Now()# <br /> DateConvert(): #DateConvert( "UTC2Local", dtGMT )# <br />