Datatable views updates for display values with format (#1603)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
eae1b350b7
commit
7bbab6423e
@@ -10,7 +10,7 @@ export class DateFormatPipe implements PipeTransform {
|
||||
constructor(private settingsService: SettingsService) {
|
||||
}
|
||||
|
||||
transform(value: any, dateFormat: string): any {
|
||||
transform(value: any, dateFormat?: string): any {
|
||||
const defaultDateFormat = this.settingsService.dateFormat.replace('dd', 'DD');
|
||||
if (typeof value === 'undefined') {
|
||||
return '';
|
||||
|
||||
@@ -10,7 +10,7 @@ export class DatetimeFormatPipe implements PipeTransform {
|
||||
constructor(private settingsService: SettingsService) {
|
||||
}
|
||||
|
||||
transform(value: any, datetimeFormat: string): any {
|
||||
transform(value: any, datetimeFormat?: string): any {
|
||||
const defaultDateFormat = this.settingsService.dateFormat.replace('dd', 'DD');
|
||||
if (typeof value === 'undefined') {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user