Verify yourself to prove that you are not a ROBOT! After verification the page will apear. Thanks for understanding.
How do you transform
I've checked the list of TimeZone but PT,MT,CT and ET are not in the timezone list.
I was thinking I can map the PT,MT,CT,ET like:
<!--- use Pacific time as sample --->
<cfset varTimeZone = "PT">
<cfif varTimeZone is "PT">
<cfset useTZ = "US/Pacific">
<cfelseif varTimeZone is "ET">
<cfset useTZ = "US/Eastern">
<cfelseif varTimeZone is "CT">
<cfset useTZ = "US/Central">
<cfelseif varTimeZone is "MT">
<cfset useTZ = "US/Mountain">
If I have a date like "2017-10-25 03:41:29.000" which is in UTC. I will need to display it in PST.
Another one to consider is the server uses "America/New_York" timezone. To get server timezone:
<!--- server timezone --->
<cfset tz = CreateObject("java", "java.util.TimeZone")>
<cfset tz = tz.getDefault()>
<cfoutput>TimeZone: #tz.getDisplayName()# (#tz.getID()#)</cfoutput>
If the server is in UTC it would have been easier.