X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fevent.c;h=d786998ab8ef818c0d5bebf7e15b291c1b04b7e1;hb=c55a6857b24843d83a0fd43a9613f77852ffadc6;hp=f5b78f4e8d0eb2086bd461a2dc5107af6b6fbbd4;hpb=4bde8611a7a9af19f8239459b8aab07a5542b03b;p=citadel.git diff --git a/webcit/event.c b/webcit/event.c index f5b78f4e8..d786998ab 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -64,7 +64,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, int which_rryeartype_is_preselected; const char *ch; - char *tabnames[3]; + const char *tabnames[3]; const char *frequency_units[8]; const char *ordinals[6]; @@ -264,8 +264,6 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, ((yesbstr("alldayevent")) ? 1 : 0), icaltimezone_get_utc_timezone() ); - t_start.is_utc = 1; - } display_icaltimetype_as_webform(&t_start, "dtstart", 0); @@ -854,8 +852,8 @@ void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *fr /* Add NOW() to the calendar object... */ icalcomponent_set_dtstamp(vevent, - icaltime_from_timet( - time(NULL), 0)); + icaltime_from_timet_with_zone( + time(NULL), 0, icaltimezone_get_utc_timezone())); if (havebstr("summary")) { icalcomponent_add_property(vevent,