diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-05 14:06:38 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-03-05 14:06:38 +0100 |
commit | 6eb8174d44a0bd7b31efc49036dcf558bf70605d (patch) | |
tree | 7051f5ec38b07058ad712d47acf4be5c593d28d5 /src/models | |
parent | 54bee50318c24aa35bbcf266387ae561fb85d54d (diff) |
Properly use property force as VCardTime formatter
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/rfcProps.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js index c9b91c16..7daf6f12 100644 --- a/src/models/rfcProps.js +++ b/src/models/rfcProps.js @@ -112,14 +112,16 @@ const properties = component => ({ icon: 'icon-calendar-dark', force: 'date', // most ppl prefer date for birthdays, time is usually irrelevant defaultValue: { - value: new VCardTime().fromJSDate(new Date()) + value: new VCardTime(null, null, 'date').fromJSDate(new Date()) } }, anniversary: { readableName: t('contacts', 'Anniversary'), + info: t('contacts', 'The date of marriage, or equivalent, of this contact'), icon: 'icon-calendar-dark', + force: 'date', // most ppl prefer date for birthdays, time is usually irrelevant defaultValue: { - value: new VCardTime().fromJSDate(new Date()) + value: new VCardTime(null, null, 'date').fromJSDate(new Date()) } }, deathdate: { @@ -127,7 +129,7 @@ const properties = component => ({ icon: 'icon-calendar-dark', force: 'date', // most ppl prefer date for birthdays, time is usually irrelevant defaultValue: { - value: new VCardTime().fromJSDate(new Date()) + value: new VCardTime(null, null, 'date').fromJSDate(new Date()) } }, email: { |