aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1998-04-19 05:37:45 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-19 05:37:45 +0800
commit24f0de634028297d3647779cffa082f8ff6a230a (patch)
tree197addeb391befbf624534683e567c4d6173cd52 /calendar/gui/calendar.c
parent6329a627a9e719838427d02e9d4480bf3c6cd76a (diff)
downloadgsoc2013-evolution-24f0de634028297d3647779cffa082f8ff6a230a.tar.gz
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/gui/calendar.c')
-rw-r--r--calendar/gui/calendar.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c
index 28f37f78eb..a32efae1e0 100644
--- a/calendar/gui/calendar.c
+++ b/calendar/gui/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;