diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-09-30 19:41:18 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-09-30 19:43:58 +0200 |
commit | 7f5169c2e963a1c3a3508a0a368e5cf48ab832f7 (patch) | |
tree | 8d37a5d9c22d57b577f6989f04ac8546f83eb95a /src | |
parent | 17b1b431f563fa99e24e55a392c251f590bfc465 (diff) | |
download | profani-tty-7f5169c2e963a1c3a3508a0a368e5cf48ab832f7.tar.gz |
Use g_date_time_format_iso8601()
This partly reverts d3a387a0ec6e5265f625de87318be2de610efb01. For proanity 0.9.x we still wanted to support older glib versions so that we can be packaged for various linux distros. Now with 0.10 we want to move on.
Diffstat (limited to 'src')
-rw-r--r-- | src/database.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/database.c b/src/database.c index 8424b398..37fe5a03 100644 --- a/src/database.c +++ b/src/database.c @@ -316,15 +316,9 @@ _add_to_db(ProfMessage* message, char* type, const Jid* const from_jid, const Ji gchar* date_fmt; if (message->timestamp) { - // g_date_time_format_iso8601() is only availble from glib 2.62 on. - // To still support Debian buster lets use g_date_time_format() for now. - //date_fmt = g_date_time_format_iso8601(message->timestamp); - date_fmt = g_date_time_format(message->timestamp, "%FT%T%:::z"); + date_fmt = g_date_time_format_iso8601(message->timestamp); } else { - // g_date_time_format_iso8601() is only availble from glib 2.62 on. - // To still support Debian buster lets use g_date_time_format() for now. - //date_fmt = g_date_time_format_iso8601(g_date_time_new_now_local()); - date_fmt = g_date_time_format(g_date_time_new_now_local(), "%FT%T%:::z"); + date_fmt = g_date_time_format_iso8601(g_date_time_new_now_local()); } const char* enc = _get_message_enc_str(message->enc); |