Skip to content

Commit

Permalink
Merge pull request #984 from nextcloud/fix/rev
Browse files Browse the repository at this point in the history
Fix rev init
  • Loading branch information
skjnldsv authored Mar 11, 2019
2 parents 09dc687 + 25891de commit 3bc432e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/models/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}
}

Expand Down

0 comments on commit 3bc432e

Please sign in to comment.