JohnGree wrote:
> <cfscript>
> // or wherever you put the timezone CFC
> tz=createObject("component","timeZone");
> // assuming this is user's locale, you need to manage
these
> setLocale("English (Australian)");
> smsDate=lsParseDateTime(form.InboxDate);
>
>
hours=listFirst(SMS_Time,":")+listGetAt(SMS_Time,2,":")/60+listLast(SMS_Time,":"
> )/360;
not really sure what you're trying to do but maybe something
like
hours=hour(SMS_Time)+(minute(SMS_Time)/60)+(second(SMS_Time)/360);
> smsDate=dateAdd("h",hours,smsDate);
> // shortcut method i forgot about
> serverDate=tz.castToServer(smsDate,GetUser.LocalTime12);
> </cfscript>
all this seems kind of familiar....