Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Wrong time

    I am using this line to display time:
    <cfoutput>#TimeFormat(Now(), "hh:mm:ss tt")#</cfoutput></p>
    but, it displays a wrong time.

    The server and the client machines have the same date and time.
    From where does it take the time?

    ReYMoNPVR Guest

  2. Similar Questions and Discussions

    1. netstream.time delivers wrong values
      Hi all, I got an odd output after appending data to a netsream. During play the recorded stream I get wrong numbers for the first part of the...
    2. RegisterStartupScript firing at the wrong time
      I have a weird thing going on. I think I've figured out what's causing my problem, but I can't find any way to fix it. I have a custom server...
    3. DateTime getting wrong time zone
      I seem to have found a bug in the DateTime class's determination of the local time zone. This one-liner demonstrates the problem: $ ruby -rdate...
    4. #25592 [Opn->Bgs]: Get wrong timezone and time
      ID: 25592 Updated by: sniper@php.net Reported By: pennington at rhodes dot edu -Status: Open +Status: ...
    5. #25592 [NEW]: Get wrong timezone and time
      From: pennington at rhodes dot edu Operating system: Windows NT SP6a PHP version: 4.3.3 PHP Bug Type: Date/time related Bug...
  3. #2

    Default Re: Wrong time

    Could you provide an example of the bad time? For example, at 5 p.m., what does it display? Now() takes the date time from the server.
    jdeline Guest

  4. #3

    Default Re: Wrong time

    This is an example:
    at 5 p.m. it displays 9 p.m.
    Could you tell me please how to change the server time?

    ReYMoNPVR Guest

  5. #4

    Default Re: Wrong time

    Hello.

    If this is a unix box, type date at the command prompt. On a windows box,
    check the system time on the taskbar. if that time is correct then you just
    need to cf (technically the jvm, but...) that you are in a particular timezone.

    In the coldfusion administrator, under Java and jvm options, in JVM Arguments,
    add
    -Duser.timezone=America/Chicago

    replacing America/Chicago with the proper timezone for your area.

    EjayHire@hotmail.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