diff options
Diffstat (limited to 'web/html/component/aPersianDatepicker.html')
| -rw-r--r-- | web/html/component/aPersianDatepicker.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/html/component/aPersianDatepicker.html b/web/html/component/aPersianDatepicker.html index ebd85a08..e8b09b92 100644 --- a/web/html/component/aPersianDatepicker.html +++ b/web/html/component/aPersianDatepicker.html @@ -42,7 +42,7 @@ }; }, watch: { - value: function (date) { + value: function(date) { this.date = this.convertToJalalian(date) } }, @@ -52,7 +52,8 @@ }, methods: { convertToGregorian(date) { - return date ? moment(moment(date, 'jYYYY/jMM/jDD HH:mm:ss').format('YYYY-MM-DD HH:mm:ss')) : null + return date ? moment(moment(date, 'jYYYY/jMM/jDD HH:mm:ss').format('YYYY-MM-DD HH:mm:ss')) : + null }, convertToJalalian(date) { return date && moment.isMoment(date) ? date.format('jYYYY/jMM/jDD HH:mm:ss') : null |
