aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.c
diff options
context:
space:
mode:
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;