diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-04-19 05:37:45 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-19 05:37:45 +0800 |
commit | 24f0de634028297d3647779cffa082f8ff6a230a (patch) | |
tree | 197addeb391befbf624534683e567c4d6173cd52 /calendar/calendar.c | |
parent | 6329a627a9e719838427d02e9d4480bf3c6cd76a (diff) | |
download | gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.gz gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.bz2 gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.lz gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.xz gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.zst gsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.zip |
Add Quoted printable property to items containing new lines. (duration):
1998-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calobj.c (ical_object_to_vobject): Add Quoted printable property
to items containing new lines.
(duration): Use unsigned integers, to work around buggy calendar
files generated by korganizer.
* main.c (save_calendar_cmd): Do not ask for file name if we are
saving.
(save_as_calendar_cmd): New command.
svn path=/trunk/; revision=158
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r-- | calendar/calendar.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c index 28f37f78eb..a32efae1e0 100644 --- a/calendar/calendar.c +++ b/calendar/calendar.c @@ -256,6 +256,9 @@ calendar_load_from_vobject (Calendar *cal, VObject *vcal) if (strcmp (object_name, VCVersionProp) == 0) continue; /* FIXME: implement */ + + if (strcmp (object_name, VCTimeZoneProp) == 0) + continue; /* FIXME: implement */ ical = ical_object_create_from_vobject (this, object_name); @@ -296,13 +299,17 @@ calendar_save (Calendar *cal, char *fname) { VObject *vcal; GList *l; - + time_t now = time (NULL); + if (fname == NULL) fname = cal->filename; + + /* WE call localtime for the side effect of setting tzname */ + localtime (&now); vcal = newVObject (VCCalProp); addPropValue (vcal, VCProdIdProp, "-//GNOME//NONSGML GnomeCalendar//EN"); - addPropValue (vcal, VCTimeZoneProp, "NONE"); + addPropValue (vcal, VCTimeZoneProp, tzname [0]); addPropValue (vcal, VCVersionProp, VERSION); cal->temp = vcal; |