Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Google/DetailsEvents/VanGEventDetail.cs @ 198:cd96cfc8a1f5
Se agrega la fecha de termino a Google Calendar.
author | alabra |
---|---|
date | Mon, 15 Aug 2011 15:35:17 -0400 |
parents | 2d02adb79322 |
children | 33976aea7546 |
comparison
equal
deleted
inserted
replaced
197:bfd472758bc3 | 198:cd96cfc8a1f5 |
---|---|
22 | 22 |
23 public void Generate(Evento evento) | 23 public void Generate(Evento evento) |
24 { | 24 { |
25 Title = "VAN sobre " + evento.Titulo; | 25 Title = "VAN sobre " + evento.Titulo; |
26 Location = "http://snipr.com/virtualaltnet"; | 26 Location = "http://snipr.com/virtualaltnet"; |
27 if (evento.FechaInicio != null) | 27 StartEvent = evento.FechaInicio.Value; |
28 StartEvent = new DateTime(evento.FechaInicio.Value.Year, evento.FechaInicio.Value.Month, evento.FechaInicio.Value.Day, | 28 EndEvent = evento.FechaTermino.Value; |
29 18, 0, 0, DateTimeKind.Utc); | |
30 EndEvent = StartEvent.AddHours(2); | |
31 | |
32 var cultureInfo = new CultureInfo( "es-ES", false ).DateTimeFormat; | 29 var cultureInfo = new CultureInfo( "es-ES", false ).DateTimeFormat; |
33 | 30 |
34 Summary = TextoVan.Replace("[NOMBRE]", evento.Titulo). | 31 Summary = TextoVan.Replace("[NOMBRE]", evento.Titulo). |
35 Replace("[NOMBRE_EXPOSITOR]", evento.Ponente.Nombre). | 32 Replace("[NOMBRE_EXPOSITOR]", evento.Ponente.Nombre). |
36 Replace("[FECHA]", StartEvent.ToString("D", cultureInfo)). | 33 Replace("[FECHA]", StartEvent.ToString("D", cultureInfo)). |