Skip to content

Commit 058228b

Browse files
fix: rev timestamp on contact update
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
1 parent 2fb3436 commit 058228b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/store/contacts.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,11 @@ const actions = {
321321

322322
// Update REV
323323
if (contact.version === '4.0') {
324-
contact.rev = ICAL.Time.fromJSDate(new Date(), true)
324+
contact.rev = ICAL.VCardTime.now().convertToZone(ICAL.Timezone.utcTimezone)
325325
}
326326
if (contact.version === '3.0') {
327327
contact.rev = ICAL.VCardTime.fromDateAndOrTimeString(new Date().toISOString(), 'date-time')
328328
}
329-
contact.rev = ICAL.VCardTime.now().convertToZone(ICAL.Timezone.utcTimezone)
330329

331330
const vData = contact.toStringStripQuotes()
332331

0 commit comments

Comments
 (0)