Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/05/2014, 08:44
Pimager
 
Fecha de Ingreso: julio-2010
Mensajes: 298
Antigüedad: 13 años, 10 meses
Puntos: 8
Problema con el horario en un fichero ics

Hola a todos, estoy creando un ficehro ".ics" con el fin de poder insertarlo en Outlook a modo de cita.
El código que tengp es el siguiente:
Código:
string DateFormat = "yyyyMMddTHHmmssZ";
string startDate = "20140508T111200Z"//2014-05-08 11:12:00
string endDate = "20140509T152500Z"//2014-05-09 15:25:00
string iCal = string.Format(@"BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
ORGANIZER:MAILTO:{0}
DTSTART:{1}
DTEND:{2}
LOCATION:{3}
UID:{4}
DTSTAMP:{4}
SUMMARY:{5}
DESCRIPTION:{6}
PRIORITY:5
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR", email, startDate, endDate, location, DateTime.Now.ToUniversalTime().ToString(DateFormat), summary, description);
Pero cuando abro el fichero me dice que la fecha de inicio es: 2014-05-08 13:12:00 y la fecha de fin es: 2014-05-09 17:12:00
Alguien sabe porqué me agrega 2 horas? No entiendo a qué se debe.

Muchas gracias