mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Upgrade core, documentList, dataTable
This commit is contained in:
@@ -15,22 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {
|
||||
it,
|
||||
describe,
|
||||
expect
|
||||
} from '@angular/core/testing';
|
||||
|
||||
import {
|
||||
DataColumn,
|
||||
DataRow, DataSorting
|
||||
} from './datatable-adapter';
|
||||
|
||||
import {
|
||||
ObjectDataTableAdapter,
|
||||
ObjectDataRow,
|
||||
ObjectDataColumn
|
||||
} from './object-datatable-adapter';
|
||||
import { DataColumn, DataRow, DataSorting } from './datatable-adapter';
|
||||
import { ObjectDataTableAdapter, ObjectDataRow, ObjectDataColumn } from './object-datatable-adapter';
|
||||
|
||||
describe('ObjectDataTableAdapter', () => {
|
||||
|
||||
|
@@ -108,7 +108,7 @@ export class ObjectDataTableAdapter implements DataTableAdapter {
|
||||
let value = row.getValue(col.key);
|
||||
|
||||
if (col.type === 'date') {
|
||||
let datePipe = new DatePipe();
|
||||
let datePipe = new DatePipe('en-US');
|
||||
let format = col.format || 'medium';
|
||||
try {
|
||||
return datePipe.transform(value, format);
|
||||
|
Reference in New Issue
Block a user