summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-06-15 12:56:07 +0100
committerRichard Hughes <richard@hughsie.com>2017-06-16 20:43:14 +0100
commitefc6177c8a535bca934bb609dfc86e369fc32679 (patch)
tree921e0b9850f9a247cb539e52ca853d873f32ee60
parent7617314df6d7635f663e7782d5cccbe113d42024 (diff)
downloadappstream-glib-efc6177c8a535bca934bb609dfc86e369fc32679.tar.gz
Do not write a timestamp when using news-to-appdata
-rw-r--r--client/as-util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/as-util.c b/client/as-util.c
index 692fab9..f9c8715 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -869,9 +869,11 @@ as_util_news_to_appdata_hdr (GString *desc, const gchar *txt, GError **error)
/* add markup */
as_util_news_add_indent (desc, 2);
g_string_append_printf (desc, "<release version=\"%s\" "
- "timestamp=\"%" G_GINT64_FORMAT "\">\n",
+ "date=\"%s-%s-%s\">\n",
version,
- g_date_time_to_unix (dt));
+ release_split[0],
+ release_split[1],
+ release_split[2]);
as_util_news_add_indent (desc, 3);
g_string_append (desc, "<description>\n");