aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gncal-day-panel.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-03-11 09:35:52 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-03-11 09:35:52 +0800
commit20bba8a8f67d1e347d00748b03908f948c2be6b7 (patch)
tree0b11710b8773a51ec11385af05606aa80332f303 /calendar/gui/gncal-day-panel.c
parent1b383b0fa71f05423f333fc0afcd049a643dca74 (diff)
downloadgsoc2013-evolution-20bba8a8f67d1e347d00748b03908f948c2be6b7.tar
gsoc2013-evolution-20bba8a8f67d1e347d00748b03908f948c2be6b7.tar.gz
gsoc2013-evolution-20bba8a8f67d1e347d00748b03908f948c2be6b7.tar.bz2
gsoc2013-evolution-20bba8a8f67d1e347d00748b03908f948c2be6b7.tar.lz
gsoc2013-evolution-20bba8a8f67d1e347d00748b03908f948c2be6b7.tar.xz
gsoc2013-evolution-20bba8a8f67d1e347d00748b03908f948c2be6b7.tar.zst
gsoc2013-evolution-20bba8a8f67d1e347d00748b03908f948c2be6b7.zip
1999-03-10 Craig A Soules (soules+@andrew.cmu.edu)
* timeutil.c, calendar.c, calobj.c, gncal-day-panel.c: Add support for daylight time savings. svn path=/trunk/; revision=756
Diffstat (limited to 'calendar/gui/gncal-day-panel.c')
-rw-r--r--calendar/gui/gncal-day-panel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/gncal-day-panel.c b/calendar/gui/gncal-day-panel.c
index 57df9acc3b..518babfa1a 100644
--- a/calendar/gui/gncal-day-panel.c
+++ b/calendar/gui/gncal-day-panel.c
@@ -71,13 +71,14 @@ calendar_day_selected (GtkCalendar *calendar, GncalDayPanel *dpanel)
{
gint y, m, d;
struct tm tm;
+ time_t time;
gtk_calendar_get_date (calendar, &y, &m, &d);
tm.tm_year = y - 1900;
tm.tm_mon = m;
tm.tm_mday = d;
- tm.tm_hour = 0;
+ tm.tm_hour = 5; /* for daylight savings time fix */
tm.tm_min = 0;
tm.tm_sec = 0;
@@ -233,7 +234,7 @@ gncal_day_panel_set (GncalDayPanel *dpanel, time_t start_of_day)
g_return_if_fail (dpanel != NULL);
g_return_if_fail (GNCAL_IS_DAY_PANEL (dpanel));
- dpanel->start_of_day = time_day_begin (start_of_day);
+ dpanel->start_of_day = time_day_begin(start_of_day);
if (dpanel->fullday->lower == dpanel->start_of_day)
return;