aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-17 09:06:02 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-17 09:06:02 -0500
commit72f23220db542cb8e41e9492528e79082c916804 (patch)
tree0ec9b3df80e55a3686d06bd9595c77a4a008f41f /src/utils.h
parent49ee32fefe869a778f39f88a936f546ef2c68737 (diff)
downloadayatana-indicator-datetime-72f23220db542cb8e41e9492528e79082c916804.tar.gz
ayatana-indicator-datetime-72f23220db542cb8e41e9492528e79082c916804.tar.bz2
ayatana-indicator-datetime-72f23220db542cb8e41e9492528e79082c916804.zip
in service.c, replace all calls to time(NULL) and g_date_time_new_now_local() with a call to the new 'indicator_datetime_service_get_localtime()' func. This is currently a passthrough to _new_now_local(), but we'll need this control point to override the system time in unit testing
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h
index c2bc0c5..8dc2964 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -31,7 +31,7 @@ gboolean is_locale_12h (void);
void split_settings_location (const gchar * location, gchar ** zone, gchar ** name);
gchar * get_current_zone_name (const gchar * location);
gchar * generate_format_string_full (gboolean show_day, gboolean show_date);
-gchar * generate_format_string_at_time (GDateTime * time);
+gchar * generate_format_string_at_time (GDateTime * now, GDateTime * time);
G_END_DECLS