aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-datespec.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-24 06:32:17 +0800
committerDan Winship <danw@src.gnome.org>2000-08-24 06:32:17 +0800
commit703511b4a899a4f3d7071b9930abf9319620555a (patch)
tree9da908716547ea94a5e62d6db2db7227c4c79da6 /filter/filter-datespec.c
parentb29fc16e4b9130c44ec5702851166466164fbbf8 (diff)
downloadgsoc2013-evolution-703511b4a899a4f3d7071b9930abf9319620555a.tar.gz
gsoc2013-evolution-703511b4a899a4f3d7071b9930abf9319620555a.tar.zst
gsoc2013-evolution-703511b4a899a4f3d7071b9930abf9319620555a.zip
Set seltime.tm_isdst to -1, not daylight, because the current dst value is
* filter-datespec.c (cal_day_selected): Set seltime.tm_isdst to -1, not daylight, because the current dst value is not relevant to the selected date. svn path=/trunk/; revision=4991
Diffstat (limited to 'filter/filter-datespec.c')
-rw-r--r--filter/filter-datespec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/filter-datespec.c b/filter/filter-datespec.c
index c087401ee2..3e938f8cc3 100644
--- a/filter/filter-datespec.c
+++ b/filter/filter-datespec.c
@@ -678,7 +678,6 @@ static void
cal_day_selected (GtkCalendar *cal, gpointer user_data)
{
FilterDatespec *fds = (FilterDatespec *)user_data;
- extern int daylight;
struct tm seltime;
seltime.tm_sec = 0;
@@ -687,7 +686,7 @@ cal_day_selected (GtkCalendar *cal, gpointer user_data)
seltime.tm_mday = cal->selected_day;
seltime.tm_mon = cal->month;
seltime.tm_year = cal->year - 1900;
- seltime.tm_isdst = daylight;
+ seltime.tm_isdst = -1;
fds->value = mktime (&seltime);
}