ok!! thank you !

Time issues are always fun for me when I use my shared hosting, because here
i am in Australian Eastern Standard Time, and the server is in US with local
time there being Mountain Daylight Time right now, but the server's set up
in UTC and being  as how it's a computer, the clock wanders so every once in
a while I have to get the support guy to correct the clock.   And then when
Daylight Savings time changes, it's always a thrill to guess whether the
change is going to happen on the correct date.    (Eastern Australian didnt
change on the normal date this year, but only this year)

So this is a welcome way to unhook my sites from all that, and connect them
to a  standard time, always correct to within a millisecond or two, and not
have to care whether the system clock on the server is correct or not.

On each of my sites I set up a variable called request.austime and use that
whereever you'd otherwise use now().     As long as request.austime is
correct for Sydney time, everything's fine and it doesnt matter where in the
world the server sits.

So now, thanks to you two fine fellows, looks like this is finally going to
give a true result after a long time of trying.     thank you.

Being as how it's after my bedtime now,  and time t ogo do my graveyard
shift radio show, I'll have a go at implementing your suggestions tomorrow
morning and see how it goes.

THANKS

Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month




On 5/25/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
>
> Ken Ferguson wrote:
> >     struct
> > DST   TRUE
> > HEALTHY       FALSE
> > JULIAN        53880
> > LEAPMONTH     FALSE
> > MSADV         87.0
> > NOW   {ts '2025-06-05 13:24:49'}
> > RAW   53880 06-05-25 13:24:49 50 0 0 87.0 UTC(NIST) *
> > SUCCESS       TRUE
> >
> > Here's what I get when I run your code. You'll see that NOW is getting
> > all horqued up!
>
> in that case:
>
> <cfscript>
> raw="53880 06-05-25 13:24:49 50 0 0 87.0 UTC(NIST) *";
> tD=listGetAt(raw,2," ");
> tT=listGetAt(raw,3," ");
> y=listFirst(tD,"-");
> m=listGetAt(tD,2,"-");
> d=listGetAt(tD,3,"-");
> h=listFirst(tT,":");
> n=listgetAt(tT,2,":");
> s=listgetAt(tT,3,":");
> tmpDate=createDateTime(y,m,d,h,n,s); //still suffers from DST rollover
> writeoutput("<br>#dateFormat(tmpDate)# #timeFormat(tmpDate)#");
> </cfscript>
>
> the NTP might work a bit better (returns a timestamp of UTC seconds since
> it's
> epoch, 1-jan-1900).
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241445
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to