summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-03-11 09:02:11 +0100
committerGitHub <noreply@github.com>2019-03-11 09:02:11 +0100
commit3bc432e141cef87bce87c9369c4a5655b68da89b (patch)
tree7f5867d62282f9a52d4eb093d5ec019ee9b421d0
parent09dc687a1b229250844b28aefdde826b61968998 (diff)
parent25891de72336439d4a5c09b6506170e5a47ebc5e (diff)
Merge pull request #984 from nextcloud/fix/rev
Fix rev init
-rw-r--r--src/models/contact.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/models/contact.js b/src/models/contact.js
index 82b418e5..2d383dd9 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)
+
}
}