pidgin/pidginconversation.c

changeset 42490
f864332b13ef
parent 42447
3f1004d7772a
child 42519
9101c36a3f0c
--- a/pidgin/pidginconversation.c	Mon Nov 13 21:40:33 2023 -0600
+++ b/pidgin/pidginconversation.c	Mon Nov 13 23:19:55 2023 -0600
@@ -230,7 +230,14 @@
 
 	timestamp = purple_message_get_timestamp(message);
 	if(timestamp != NULL) {
-		return g_date_time_format(timestamp, "%I:%M %p");
+		GDateTime *local = NULL;
+		char *ret = NULL;
+
+		local = g_date_time_to_local(timestamp);
+		ret = g_date_time_format(local, "%I:%M %p");
+		g_date_time_unref(local);
+
+		return ret;
 	}
 
 	return NULL;

mercurial