Thinking about this on a more technical level, does anyone know where CF
ultimately derives the week number? When I enter #now()# I assume that's the
system time but when I do #week(now())# is that the CF server taking #now()#
and deriving the week or does it get that from jrun or linux or does it work
things out on its own? What could make a CF 8.0.1 server on one linux
machine say that the exact same date/time/timezone is week 41 and every
other CF server that I know of say it's week 40?

Why do I feel like an evil little [enter name of favourite nasty] has
decided to inhabit one of my servers?

The explanation must be so simple that I will call myself an idiot for not
thinking about it when I do find out what it is....

> -----Original Message-----
> 1. Yes, exact same date and time
> 2. Yes both are set to timezone London and both report "BST" next to the
> time when I do a date command in linux 3. Yes in both cases I used
> "#week(now())#" to get the CF date and "date
> +%W" to get the linux date
> 
> I've setup and configured quite a few CF linux servers and have only ever
> seen this happen on one machine.
> 
> "Welcome to Weirdsville, population: me" :(
> 
> > -----Original Message-----
> > Very odd indeed. It makes sense that linux and cf would differ by 1,
> > as cf
> is
> > 1-53. However it doesn't make any sense to me why cf would return 40
> > on one and 41 on the other. Can you verify:
> >
> > 1) they are both the same server date?
> > 2) they are both the same timezone offset?
> > 3) they are both using CF's week() function to return the integer?
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347913
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to