diff options
author | Gary Kramlich <grim@reaperworld.com> | 2022-01-14 00:11:38 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2022-01-14 00:11:38 -0600 |
commit | 96da9bc6e3ba0487d2df21a3ea01eea3c1236796 (patch) | |
tree | 00174a80e29f8d54340e023d1fdd55d660504006 /libpurple/util.c | |
parent | 35688def2db6843f467bfb5ff632effd8a253657 (diff) | |
download | pidgin-96da9bc6e3ba0487d2df21a3ea01eea3c1236796.tar.gz |
Remove purple_utf8_strftime
Testing Done:
Ran both finch and pidgin and verified that the timestamps in their debug windows remained the same format.
Reviewed at https://reviews.imfreedom.org/r/1227/
Diffstat (limited to 'libpurple/util.c')
-rw-r--r-- | libpurple/util.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/libpurple/util.c b/libpurple/util.c index e28ee036e6..974fb5b0be 100644 --- a/libpurple/util.c +++ b/libpurple/util.c @@ -48,16 +48,13 @@ purple_util_uninit(void) { /************************************************************************** * Date/Time Functions **************************************************************************/ - const char * -purple_utf8_strftime(const char *format, const struct tm *tm) +purple_date_format_full(const struct tm *tm) { static char buf[128]; GDateTime *dt; char *utf8; - g_return_val_if_fail(format != NULL, NULL); - if (tm == NULL) { dt = g_date_time_new_now_local(); @@ -67,12 +64,12 @@ purple_utf8_strftime(const char *format, const struct tm *tm) tm->tm_min, tm->tm_sec); } - utf8 = g_date_time_format(dt, format); + utf8 = g_date_time_format(dt, "%c"); g_date_time_unref(dt); if (utf8 == NULL) { purple_debug_error("util", - "purple_utf8_strftime(): Formatting failed\n"); + "purple_date_format_full(): Formatting failed\n"); return ""; } @@ -81,12 +78,6 @@ purple_utf8_strftime(const char *format, const struct tm *tm) return buf; } -const char * -purple_date_format_full(const struct tm *tm) -{ - return purple_utf8_strftime("%c", tm); -} - /************************************************************************** * Path/Filename Functions **************************************************************************/ |