From 64757cbe2572259ad201f4c691aeb545088ae42a Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 14 Mar 2026 13:42:58 +0800 Subject: Add implementation for XEP-0202 Entity Time --- xmpp-vala/src/module/xep/0446_file_metadata_element.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmpp-vala/src/module/xep/0446_file_metadata_element.vala') diff --git a/xmpp-vala/src/module/xep/0446_file_metadata_element.vala b/xmpp-vala/src/module/xep/0446_file_metadata_element.vala index ebdcbcfa..b4c4367c 100644 --- a/xmpp-vala/src/module/xep/0446_file_metadata_element.vala +++ b/xmpp-vala/src/module/xep/0446_file_metadata_element.vala @@ -29,7 +29,7 @@ namespace Xmpp.Xep.FileMetadataElement { } if (this.date != null) { node.put_node(new StanzaNode.build("date", NS_URI).put_node( - new StanzaNode.text(DateTimeProfiles.to_datetime(this.date)) + new StanzaNode.text(DateTimeProfiles.format_time(this.date)) )); } if (this.desc != null) { @@ -84,7 +84,7 @@ namespace Xmpp.Xep.FileMetadataElement { } StanzaNode? date_node = file_node.get_subnode("date"); if (date_node != null && date_node.get_string_content() != null) { - metadata.date = DateTimeProfiles.parse_string(date_node.get_string_content()); + metadata.date = DateTimeProfiles.parse_time(date_node.get_string_content()); } StanzaNode? width_node = file_node.get_subnode("width"); if (width_node != null && width_node.get_string_content() != null) { -- cgit v1.3