mirror of
https://github.com/wekan/wekan.git
synced 2026-02-15 04:28:07 +01:00
Added Date Format setting to Opened Card.
Thanks to xet7 ! Fixes #2011, fixes #1176
This commit is contained in:
parent
516552cce6
commit
2dd3916f7e
8 changed files with 161 additions and 13 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { TAPi18n } from '/imports/i18n';
|
||||
import { DatePicker } from '/client/lib/datepicker';
|
||||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import {
|
||||
formatDateTime,
|
||||
formatDate,
|
||||
formatDateByUserPreference,
|
||||
formatTime,
|
||||
getISOWeek,
|
||||
isValidDate,
|
||||
|
|
@ -177,7 +179,9 @@ CardCustomField.register('cardCustomField');
|
|||
}
|
||||
|
||||
showDate() {
|
||||
return calendar(this.date.get());
|
||||
const currentUser = ReactiveCache.getCurrentUser();
|
||||
const dateFormat = currentUser ? currentUser.getDateFormat() : 'YYYY-MM-DD';
|
||||
return formatDateByUserPreference(this.date.get(), dateFormat, true);
|
||||
}
|
||||
|
||||
showISODate() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue