You need to sign in to do that
Don't have an account?

Time Zone's/Local Time
Hi. I'm having some trouble understanding GMT UTC and local time. I am creating a task object with a datetime fields. Here is the code I'm using.
DateTime tempTime;
tempTime = new DateTime();
if (PickupTime.Length > 0)
{
tempTime = DateTime.ParseExact(PickupTime, "yyyy-MM-dd HH:mm:ss", null);
tk[10] = doc.CreateElement("Local_Pickup_Time__c");
tk[10].InnerText = (tempTime.ToUniversalTime()).ToString("s");
}
If I have a value PickupTime = "2008-11-03 19:18:53", which is 2:18pm EST, the value I end up with in my Local_Pickup_Time_cc is 11/3/2008 1:18 PM. Which is one hour earlier. Does anyone know why?
It looks right on the User Detail page. Is that the only place to set time zone?