[libgit2-glib] Fix deprecation
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Fix deprecation
- Date: Thu, 23 Dec 2021 02:52:35 +0000 (UTC)
commit 9204df5e17ea5b7c1b8820efbbe2011ea2177b27
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Thu Dec 23 03:19:46 2021 +0100
Fix deprecation
libgit2-glib/ggit-signature.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgit2-glib/ggit-signature.c b/libgit2-glib/ggit-signature.c
index bd43cd1..7181db1 100644
--- a/libgit2-glib/ggit-signature.c
+++ b/libgit2-glib/ggit-signature.c
@@ -381,7 +381,7 @@ ggit_signature_get_time_zone (GgitSignature *signature)
time_zone_id = g_strdup_printf ("%s%02i:%02i",
s->when.offset >= 0 ? "+" : "-",
hours, minutes);
- time_zone = g_time_zone_new (time_zone_id);
+ time_zone = g_time_zone_new_identifier (time_zone_id);
g_free (time_zone_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]