title: Set Start and End Time according to time zone for .Ical files?
body: <p>I am using C# code to generate .ics files to add my events to outlook calander.</p>
  
  <p>.ics  file is generating fine with the following code.
  But i hav eone issue here that is to set start/end time according to time zones. For exampel I have Singapore Standard Time start/End Time for .ics file. I want that if someone opens file in Singapore then it should show Singapore time and if some one opens it in india then it should show Indian Time. Like 2012-04-20 13:00 this time in india will be 10:30Am So .ics file show show 10:30 as start time if .ics file opned in india.</p>
  
  <p>I want that start and end time should be according to the Time Zone of the system . so what is wrong with the following code that its not working.</p>
  
  <p>Please Help.</p>
  
  <p>Code:</p>
  
  <pre><code>DateTime StartTime = DateTime.Parse("2012-04-20 13:00:00.000Z");//Singapore Standard Time
  DateTime EndTime = DateTime.Parse("2012-04-20 14:00:00.000Z");//Singapore Standard Time
  bool UseAlarm = true;
                      StringBuilder sb = new StringBuilder(450);
                      sb.Append("BEGIN:VCALENDAR\n");
                      sb.Append("BEGIN:VEVENT\n\n");
                      sb.Append("DTSTART:");
                      sb.Append(StartTime.ToString("yyyyMMdd\\THHmmss\\Z"));
                      sb.Append("\nDTEND:");
                      sb.Append(EndTime.ToString("yyyyMMdd\\THHmmss\\Z"));
                      sb.Append("\nLOCATION:");
                      sb.Append("Location"); 
                      sb.Append("\nCATEGORIES:");
                      sb.Append(string.Empty);
                      sb.Append("\nTRANSP:OPAQUE\n");
                      sb.Append("SEQUENCE:0\n");
                      sb.AppendFormat("UID:RFCALITEM{0}\n", DateTime.Now.Ticks); 
                      sb.Append("DTSTAMP:");
                      sb.Append(StartTime.ToString("yyyyMMdd\\THHmmss\\Z"));
                      sb.Append("\nX-ALT-DESC;FMTTYPE=text/html:");//
                      sb.Append("This is just for testing."); 
                      sb.Append("\nSUMMARY:");
                      sb.Append("Title:Test ICS File"); 
                      sb.Append("\n\nPRIORITY:");
                      sb.Append(5);
                      sb.Append("\nCLASS:PUBLIC\n");
                      if (UseAlarm)
                      {
                          sb.Append("BEGIN:VALARM\n");
                          sb.Append("TRIGGER:PT15M\n");
                          sb.Append("ACTION:DISPLAY\n");
                          sb.Append("DESCRIPTION:Reminder\n");
                          sb.Append("PRIORITY:5\n");
                          sb.Append("END:VALARM\n");
                      }
                      sb.Append("END:VEVENT\n"); 
                      sb.Append("END:VCALENDAR");
  </code></pre>