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
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user