> -----Original Message----- > From: Paul Hastings [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 30, 2005 2:12 PM > To: CF-Talk > Subject: Re: Timezone conversion > > Jim Davis wrote: > > I'm (still) working on an ISO 8601 date parser. I want to convert at > least > > the formats described here: > > well there are a handful or two of java ones (from nasa, w3c, & the > supreme overkill of joda-time) & i vaguely recall a function on cflib > that does this.
For the moment this is being done in JavaScript - but the same code will be converted to CF afterwards. > > Any pointers? > > move that date to UTC (dateAdd its offset *-1.00 watching out that > dateAdd function accepts integers), then to your timezone (dateAdd your > tz offset to that UTC date). this might be of interest: That's what I assumed... but I thought there must be some clever math to do it without the interim conversion... Ah well... that'll work. It's just not very elegant. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216832 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