From 703511b4a899a4f3d7071b9930abf9319620555a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 23 Aug 2000 22:32:17 +0000 Subject: 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 --- filter/ChangeLog | 6 ++++++ filter/filter-datespec.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/filter/ChangeLog b/filter/ChangeLog index 98816b6bbe..31b39867cb 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,9 @@ +2000-08-23 Dan Winship + + * 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. + 2000-08-18 Peter Williams * filter-driver.c (do_filter_mail): Unlink a new parameter, path_to_unlink, 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); } -- cgit v1.2.3