I use the following code snippet to determine the user's local
time. utcOffset and utc2local are both gotten from the user's
profile where utcOffset is a time field value representing the
difference between UTC time and the user's local time and utc2local
is either '+' or '-' to indicate whether they are west or east of UTC.
<cfscript>
utcTime = dateConvert('local2utc', now());
span = createTimeSpan(0, datePart('h', utcOffset), datePart('n',
utcOffset), 0);
localTime = evaluate(de(utcTime) & utc2local & de(span));
</cfscript>
What I'm wondering about is how to deal with daylight savings
time. I assume the dateConvert function is going to return the
correct UTC time regardless of whether the server adjusts for DST or
not. I will know if the user is in a place that uses DST or not, but
how can I figure out if the current date falls within DST?
TIA
_______________________________________________
Reply to DFWCFUG:
[email protected]
Subscribe/Unsubscribe:
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
http://www.mail-archive.com/list%40list.dfwcfug.org/
http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
www.HostMySite.com
www.teksystems.com/