[gnome-calendar] utils: fixed debug method
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] utils: fixed debug method
- Date: Thu, 4 Dec 2014 22:34:38 +0000 (UTC)
commit b88e6574b4146bf158380b41d560e2d939f9e2ef
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Oct 6 12:14:09 2014 -0400
utils: fixed debug method
src/gcal-utils.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-utils.c b/src/gcal-utils.c
index 6c8ec17..b64c658 100644
--- a/src/gcal-utils.c
+++ b/src/gcal-utils.c
@@ -282,13 +282,16 @@ gcal_compare_event_widget_by_date (gconstpointer a,
void print_date (const gchar* prefix,
const icaltimetype* icaltime)
{
- gchar* temp =
- isodate_from_time_t (icaltime_as_timet_with_zone (*icaltime,
- icaltime->zone));
+ gchar* temp = g_strdup_printf ("{y = %d, m = %d, d = %d, hour = %d:%d:%d, utc = %d, date = %d, daylight =
%d, zone = %p}",
+ icaltime->year, icaltime->month,
+ icaltime->day, icaltime->hour,
+ icaltime->minute, icaltime->second,
+ icaltime->is_utc, icaltime->is_date,
+ icaltime->is_daylight, icaltime->zone);
g_debug ("%s: %s -- zone: %s",
prefix,
temp,
- icaltimezone_get_display_name (icaltime->zone));
+ icaltimezone_get_display_name ((icaltimezone*) icaltime->zone));
g_free (temp);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]