incorrect time from CF

Ask a Question related to Coldfusion Server Administration, Design and Development.

  1. #1

    Default incorrect time from CF

    All time functions appear to be based off GMT and not actual system time
    adjusted for time zone. The function #now()# used to show local date/time and
    now is off by my location's GMT offset. I updated JVM (per
    [url]http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=d2ab4470[/url]) but no luck.
    What makes this worse is queries based on time conflict between CF time, which
    is in error, and SQL server time, which is correct. Any help is appreciated.

    denverrails.com Guest

  2. Similar Questions and Discussions

    1. Incorrect time of Coldfusion MX 7.02 console
      Hi, I just installed coldfusion MX 7.02 on my Redhat Linux EL 4. I configured my linux box with a time zone of America/Toronto. The time on the...
    2. Time Zone and Time are incorrect
      My Windows 2003 server display an incorrect time zone. So when I change it to the correct time zone and apply the changes and go back to check to...
    3. #23467 [Com]: Showing incorrect Time Zone
      ID: 23467 Comment by: danielc at analysisandsolutions dot com Reported By: John at JGSystems dot net Status: ...
    4. #23467 [Opn]: Showing incorrect Time Zone
      ID: 23467 User updated by: John at JGSystems dot net Reported By: John at JGSystems dot net Status: Open Bug Type: ...
    5. #23467 [Ver->Fbk]: Showing incorrect Time Zone
      ID: 23467 Updated by: sniper@php.net Reported By: John at JGSystems dot net -Status: Verified +Status: ...
  3. #2

    Default Re: incorrect time from CF

    denverrails.com wrote:
    > All time functions appear to be based off GMT and not actual system time
    > adjusted for time zone. The function #now()# used to show local date/time and
    > now is off by my location's GMT offset. I updated JVM (per
    huh? isn't that local time?
    > [url]http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=d2ab4470[/url]) but no luck.
    what's the server's OS tz set to? cf takes it's tz cue from the underlying java
    SDK. i guess start by checking what the server's default is, what does this report:

    tz=createObject("java","java.util.TimeZone").getDe fault();
    writeoutput(tz.getDisplayName(true,tz.LONG));

    is it *your* tz?




    PaulH **AdobeCommunityExpert** Guest

  4. #3

    Default Re: incorrect time from CF

    tz=createObject("java","java.util.TimeZone").getDe fault();
    writeoutput(tz.getDisplayName(true,tz.LONG)); returns 'Mountain Daylight
    Time', that is my timezone yet timestamp in debug still shows mytime +7 hours

    denverrails.com Guest

  5. #4

    Default Re: incorrect time from CF

    This is a win2k server. time zone already said mountain but apparently did not
    get picked up by java??? I changed it to something other , then back again
    and restarted coldfusion. Success. Thanks PaulH!!!

    denverrails.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139