diff options
author | JP Rosevear <jpr@ximian.com> | 2002-01-15 04:28:10 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-01-15 04:28:10 +0800 |
commit | 861de26de348c0d9a8272f788527ce91408a1e72 (patch) | |
tree | 71c1c8bf3d057a872711af90f2d08cdec8d98379 | |
parent | bde55a8d92780b10706dd0d942eab532fcb2ba91 (diff) | |
download | gsoc2013-evolution-861de26de348c0d9a8272f788527ce91408a1e72.tar.gz gsoc2013-evolution-861de26de348c0d9a8272f788527ce91408a1e72.tar.zst gsoc2013-evolution-861de26de348c0d9a8272f788527ce91408a1e72.zip |
use icaltimetype_to_tm
2002-01-14 JP Rosevear <jpr@ximian.com>
* gui/gnome-cal.c (get_current_time): use icaltimetype_to_tm
svn path=/trunk/; revision=15320
-rw-r--r-- | calendar/ChangeLog | 4 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.c | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index fb48b0c8f8..800a2ec7c4 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,9 @@ 2002-01-14 JP Rosevear <jpr@ximian.com> + * gui/gnome-cal.c (get_current_time): use icaltimetype_to_tm + +2002-01-14 JP Rosevear <jpr@ximian.com> + * gui/e-week-view-main-item.c (e_week_view_main_item_draw_day): figure out when today is and highlight if it is not selected diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index bc9e426ef4..664fac4bc8 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -642,13 +642,7 @@ get_current_time (ECalendarItem *calitem, gpointer data) cal->priv->zone); /* Now copy it to the struct tm and return it. */ - tmp_tm.tm_year = tt.year - 1900; - tmp_tm.tm_mon = tt.month - 1; - tmp_tm.tm_mday = tt.day; - tmp_tm.tm_hour = tt.hour; - tmp_tm.tm_min = tt.minute; - tmp_tm.tm_sec = tt.second; - tmp_tm.tm_isdst = -1; + tmp_tm = icaltimetype_to_tm (&tt); return tmp_tm; } |