Thanks Mike,

This seems an excellent place to keep the variable. I was going to
create a UDF called OzNow() that would do a similar thing. However, this
solution does not solve the problem of daylight savings. During daylight
savings, my time will be Now() + 18hrs and when it finishes Now() +
17hrs. 

I need to work out when the last Sunday in October is and when the last
Sunday in March is and adjust the difference accordingly.

This is what I have so far...

<cfset wintertime = DateAdd("h",17,now())>
<cfset summertime = DateAdd("h",18,now())>
<cfset thisyear = Datepart("yyyy",now())>

<cfloop from="25" to="31" index="x">
    <cfif DatePart("w",Createdate(#thisyear#,10,#x#)) eq 1>
        <cfset startdate = Createdate(#thisyear#,10,#x#)>
    </cfif> 
</cfloop>

<cfloop from="25" to="31" index="x">
    <cfif DatePart("w",Createdate(#thisyear#,3,#x#)) eq 1>
        <cfset enddate = Createdate(#thisyear#,3,#x#)>
    </cfif> 
</cfloop>

...

Sorry folks, I'm only just starting to learn this stuff. I'm struggling
with this and would appreciate any help.

Thanks,

Tom



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Kear
Sent: Wednesday, 1 December 2004 8:20 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Converting to local time

What i usually do is have a variable in my Application.cfm file called
application.austime.

Anywhere i might use now()  instead i use #application.austime#. 


In the Applicatoin.cfm file i put the following:

<cfset application.austime= #now()# + #createTimeSpan(0,17,0,0)#> And in
my local Dev version of the site i have the following:

<cfset application.austime= #now()# + #createTimeSpan(0,0,0,0)#>  so
that i can still use the variable locally.


Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
.com,.net,.org domains from AUD$20/Year



On Wed, 1 Dec 2004 11:15:46 +1000, KNOTT, Brian
<[EMAIL PROTECTED]> wrote:
> Tom,
>        If oyu use gettimezoneinfo() you can find out the server time 
> in relation to UTC.  You can then just dateadd you time zone to get 
> the correct local time.
> 
> Brian Knott
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 December 2004 10:25 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: Converting to local time
> 
> Tom, is the server a shared host?
>

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To
unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to