From 25891de72336439d4a5c09b6506170e5a47ebc5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 11 Mar 2019 08:52:43 +0100 Subject: [PATCH] Fix rev init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/models/contact.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/contact.js b/src/models/contact.js index 82b418e5d..2d383dd96 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -70,9 +70,10 @@ export default class Contact { // if no rev set, init one if (!this.vCard.hasProperty('rev')) { - const rev = new ICAL.VCardTime() + const rev = new ICAL.VCardTime(null, null, 'date-time') rev.fromUnixTime(Date.now() / 1000) - this.rev = rev + this.vCard.addPropertyWithValue('rev', rev) + } }