John, It's really late here in CA but I'll give you something to work on.  

The trick is to work with the UTC time.  This means you have to convert your
server-side date data (or variable) to the UTC Timezone (lookup:
DateConvert). Once your server data is on UTC, you have to determine the
timezone preference of the user (or the client machine using Javascript). In
your case, that is HI.  Then just calculate the difference between HI
timezone and the UTC timezone.

One thing to remember is you have to take the New Jersey timezone out of the
picture, and just work with the UTC converted time. Think of UTC as you
bearing or point of reference. This method will make your date data
manipulation more scalable.

It's a bit hard to grasp at the beginning, but that's the path to take.

Michael






> -----Original Message-----
> From: John Barrett [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 09, 2008 12:02 AM
> To: CF-Newbie
> Subject: Re: server time
> 
> Hi Rick,
> Thanks so much!
> 
> yeah I have been doing lots of CF coding lately, and loving it`-`
> 
> Thanks so much for your help, this is what I really needed. I made a
> screen shot for now (hawaii=8:54PM, NJ=2:54 PM)
> screenshoot:
> http://cfhawaii.com/servertime.jpg (actually a few minutes ago)
> the actually page:
> http://cfhawaii.com/test_this.cfm
> 
> I might have made things more difficult bringing in an hour issue,
> but since there was a 6 hour issue, well at least I noticed after
> 6:00pm here the day changed.
> I am stoked to see a solution and understand what is going on.
> 
> yeah you are right, I got the e-mail at 6:52pm here in HI, but took a
> while to check it out,and test this.
> Thanks so much for all your help`-`
> I am so grateful to this list, as nobody seems excited about CF here
> in Hawaii:(
> John
> 
> >
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3910
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to