summaryrefslogtreecommitdiff
path: root/calendar/backends/weather
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-10-24 08:45:29 +0000
committerChenthill Palanisamy <pchen@src.gnome.org>2005-10-24 08:45:29 +0000
commit2fd83d2171999ad51dbac1a817a387e94ac6ac93 (patch)
tree99115b8169eed87b10ff0b8e03d29f53bcaaef97 /calendar/backends/weather
parent4f6c13b5f71818fac019d3c1965fdaa9cb7381f9 (diff)
downloadevolution-data-server-2fd83d2171999ad51dbac1a817a387e94ac6ac93.tar.gz
fixes #308802.
Diffstat (limited to 'calendar/backends/weather')
-rw-r--r--calendar/backends/weather/e-cal-backend-weather.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c
index 1e61ae157..6c08141d6 100644
--- a/calendar/backends/weather/e-cal-backend-weather.c
+++ b/calendar/backends/weather/e-cal-backend-weather.c
@@ -32,7 +32,9 @@
static gboolean reload_cb (ECalBackendWeather *cbw);
static gboolean begin_retrieval_cb (ECalBackendWeather *cbw);
static ECalComponent* create_weather (ECalBackendWeather *cbw, WeatherForecast *report);
-
+static ECalBackendSyncStatus
+e_cal_backend_weather_add_timezone (ECalBackendSync *backend, EDataCal *cal, const char *tzobj);
+
/* Private part of the ECalBackendWeather structure */
struct _ECalBackendWeatherPrivate {
/* URI to get remote weather data from */
@@ -440,10 +442,12 @@ e_cal_backend_weather_open (ECalBackendSync *backend, EDataCal *cal, gboolean on
if (priv->city)
g_free (priv->city);
priv->city = g_strdup (strrchr (uri, '/') + 1);
-
+
if (!priv->cache) {
priv->cache = e_cal_backend_cache_new (uri);
+ e_cal_backend_weather_add_timezone (backend, cal, (const char *) icaltimezone_get_tzid (priv->default_zone));
+
if (!priv->cache) {
e_cal_backend_notify_error (E_CAL_BACKEND (cbw), _("Could not create cache file"));
return GNOME_Evolution_Calendar_OtherError;