diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-01 08:45:24 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-01 08:45:24 +0200 |
commit | 32483d180bbcf61b068f5534be3aef9d11ee1fdc (patch) | |
tree | 21fec642b0ef3be3099ca79ee7fa06e2a1744d79 /src/models/rfcProps.js | |
parent | d520d96fee5e791cf7cea9cd5ffcbbbe4ce8d2ea (diff) |
Fix date formating and default date value + deps
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/models/rfcProps.js')
-rw-r--r-- | src/models/rfcProps.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/models/rfcProps.js b/src/models/rfcProps.js index 8b4a6731..30745eeb 100644 --- a/src/models/rfcProps.js +++ b/src/models/rfcProps.js @@ -19,6 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ +import { VCardTime } from 'ical.js' const properties = { nickname: { @@ -92,15 +93,24 @@ const properties = { }, bday: { readableName: t('contacts', 'Birthday'), - icon: 'icon-calendar-dark' + icon: 'icon-calendar-dark', + defaultValue: { + value: new VCardTime().fromJSDate(new Date()) + }, }, anniversary: { readableName: t('contacts', 'Anniversary'), - icon: 'icon-calendar-dark' + icon: 'icon-calendar-dark', + defaultValue: { + value: new VCardTime().fromJSDate(new Date()) + }, }, deathdate: { readableName: t('contacts', 'Date of death'), - icon: 'icon-calendar-dark' + icon: 'icon-calendar-dark', + defaultValue: { + value: new VCardTime().fromJSDate(new Date()) + }, }, email: { multiple: true, |