Posted on: 4/21/2011 1:02:03 PM | Views : 362

Hello,
I am having a really weird problem with the time showing up in my event calendars sent via asp.net page.
The trouble is it appears to work just fine on my local machine and development server but not on the production server. The times showing up when sent from production server is adjusted one hour ahead of schedule. Basically a user registeres for a class and gets a meeting invite in outlook with the class start and end date and time. Here is my code:
 
if (starttime.ToShortDateString() != "1/1/0001" && endtime.ToShortDateString() != "1/1/0001" && timezone.Length > 0) { TimeSpan offset = TimeZoneInfo.FindSystemTimeZoneById(LD_General.getTimeZoneID(timezone)).BaseUtcOffset; DateTimeOffset dtoStart = new DateTimeOffset(starttime.Year, starttime.Month, starttime.Day, starttime.Hour, starttime.Minute, 0, offset); dtoStart = Time ...

Go to the complete details ...