Workbench: Programming, Publishing, Politics, and Popes

Subscriptions

Menu

Working On

Locals

Favorites

Miscellany

Technorati

XFN Friendly

Handling Daylight Savings Time in ColdFusion

SportsFilter has been misreporting the time on posts and comments since the U.S. sprang forward, reporting times in CST instead of CDT. To fix the problem, I wrote a few lines of ColdFusion code to set a tzid variable to the proper timezone identifier: <cfset tzinfo = GetTimeZoneInfo()> <cfset tzid = "CST"> <cfif tzinfo.isDSTOn IS "True">   <cfset tzid = "CDT"> </cfif> ... read more

Twitter

Lieberman's such an unctious moralizing dope. Link Thank God Bush stole the election in 2000. about 8 hours ago






Home | Comments | Books | Code | RSS Feed | RSS Spec | Copyright 2008 World Readable