Thanks David, we'll take a look and see what is at play here.

On 23-Feb-15 23:01, David Roberto Venegas wrote:
Hello,

I have been working on a web app for the last few months and I am stuck on a date offset issue. My current location is -6 GMT but when I use the GetTimeZoneInfo the offset is 0. But when I output the Now() I get a time that is offset by -6 from my local time. (See attached)

It seems like it is not recognizing my local time.

The code on the attached image is:


Now: <cfdump var="#now()#"><br />
Time Zone: <cfdump var="#getTimeZoneInfo()#"><br />
CF Version: <cfdump var="#server.coldfusion#"><br />
<cfset version = createObject("java", "java.lang.System").getProperty("java.version")><br />
Java: <cfdump var="#version#"></p>
<cfset tz = CreateObject("java", "java.util.TimeZone")>
<cfset tz = tz.getDefault()>
TimeZone: <cfdump var="#tz.getDisplayName()# (#tz.getID()#) "><br>

<cfset prop = createObject("java", "java.lang.System").getProperty("user.timezone")>
User.timezone =  <cfdump var="#prop#"><br>
<cfset info = GetTimeZoneInfo()>

<cfoutput>
<p>Total offset in seconds is #info.utcTotalOffset#.</p>
<p>Offset in hours is #info.utcHourOffset#.</p>
<p>Offset in minutes minus the offset in hours is
    #info.utcMinuteOffset#.</p>
<p>Is Daylight Savings Time in effect? #info.isDSTOn#.</p>
</cfoutput>





Has this happened to any of you? Help is greatly appreciated.

Thanks,
David
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
http://aw20.is/

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

--- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to