# HG changeset patch # User rosfran # Date 1165947516 0 # Node ID 633c6c9784d3f21b917573501ca04770ea6d6504 # Parent 254e85c4326998b6706979a603c242fedfec2be1 [svn r216] Change the time_t time/date references, to the GTimeVal GLib's structure. diff -r 254e85c43269 -r 633c6c9784d3 gmyth/configure.ac --- a/gmyth/configure.ac Tue Dec 12 17:59:47 2006 +0000 +++ b/gmyth/configure.ac Tue Dec 12 18:18:36 2006 +0000 @@ -58,8 +58,9 @@ AC_PROG_GCC_TRADITIONAL AC_FUNC_MALLOC AC_FUNC_MKTIME +AC_FUNC_STRFTIME AC_FUNC_VPRINTF -AC_CHECK_FUNCS([memset socket stime strstr strtoul gethostname inet_ntoa localtime_r select strrchr localtime]) +AC_CHECK_FUNCS([memset socket stime strstr strtoul gethostname inet_ntoa localtime_r select strrchr localtime strptime]) AM_INIT_AUTOMAKE($PACKAGE, $VERSION) diff -r 254e85c43269 -r 633c6c9784d3 gmyth/src/gmyth_common.c --- a/gmyth/src/gmyth_common.c Tue Dec 12 17:59:47 2006 +0000 +++ b/gmyth/src/gmyth_common.c Tue Dec 12 18:18:36 2006 +0000 @@ -88,8 +88,8 @@ "Start time= %s\t" "End time = %s\n", program_info->title->str, program_info->description->str, - ctime(&program_info->startts), - ctime(&program_info->endts)); + gmyth_util_time_to_string_from_time_val(program_info->startts), + gmyth_util_time_to_string_from_time_val(program_info->endts)); } static void diff -r 254e85c43269 -r 633c6c9784d3 gmyth/src/gmyth_util.c --- a/gmyth/src/gmyth_util.c Tue Dec 12 17:59:47 2006 +0000 +++ b/gmyth/src/gmyth_util.c Tue Dec 12 18:18:36 2006 +0000 @@ -222,7 +222,7 @@ time_t gmyth_util_string_to_time (GString* time_str) { - gint year, month, day, hour, min, sec; + //gint year, month, day, hour, min, sec; GDate *date = g_date_new(); gmyth_debug( "[%s] time_str = %s. [%s]\n", __FUNCTION__, time_str != NULL ?