You seem to be saying <cfoutput>#dateadd("h",5,now())#</cfoutput>
doesn't increment the day. Try this test,

<cfoutput>
        #now()#<br>
        #dateadd("h",24,now())#
</cfoutput>

You should find the date has advanced by one.
 

> -----Original Message-----
> From: Mark [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 18 September 2002 11:34 a.m.
> To: CF-Talk
> Subject: Re: Timezones and CF
> 
> 
> Just an to clarify
> 
> . the + 5 hours, works apart from it doesn't accommodate the 
> date... so if
> its Wednesday 7.05pm in the US - then it should be 12.05 
> Thursday here...
> whoo! dateadd works... although... the +5 hours get the right 
> time... the
> date is still the previous day i.e.. 12.05 Wednesday not Thursday...
> 
> Dates and timezones really mess my brain!
> 
> 
> > > is... on my date
> > > fields... its says it's Sunday.... not Monday as it is here.
> >
> > That's amazing -- it's Wednesday here!
> >
> > So does this code work?
> >
> > > <cfoutput>#timeformat(dateadd("h",5,now()),"HH:mm")#</cfoutput>
> >
> > I would recommend adding a line to application.cfm or similar:
> >
> > <cfset request.gmt = dateadd("h",5,now())>
> >
> >
> 
> 
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to