Skip to content

Commit

Permalink
fix(footer): incorrect date format in custom footer (#379)
Browse files Browse the repository at this point in the history
* fix(footer): incorrect date format in custom footer
  • Loading branch information
ghiscoding committed Jul 9, 2020
1 parent 858ec2d commit 5297b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ describe('Aurelia-Slickgrid Custom Component instantiated via Constructor', () =
expect(customElement.columnDefinitions).toEqual(mockColDefs);
expect(customElement.showCustomFooter).toBeTrue();
expect(customElement.customFooterOptions).toEqual({
dateFormat: 'YYYY-DD-MM h:mm:ss a',
dateFormat: 'YYYY-MM-DD, hh:mm a',
hideLastUpdateTimestamp: true,
hideTotalItemCount: false,
footerHeight: 20,
Expand Down Expand Up @@ -1548,7 +1548,7 @@ describe('Aurelia-Slickgrid Custom Component instantiated via Constructor', () =
expect(customElement.columnDefinitions).toEqual(mockColDefs);
expect(customElement.showCustomFooter).toBeTrue();
expect(customElement.customFooterOptions).toEqual({
dateFormat: 'YYYY-DD-MM h:mm:ss a',
dateFormat: 'YYYY-MM-DD, hh:mm a',
hideLastUpdateTimestamp: true,
hideTotalItemCount: false,
footerHeight: 20,
Expand Down
2 changes: 1 addition & 1 deletion src/aurelia-slickgrid/global-grid-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const GlobalGridOptions: Partial<GridOption> = {
width: 200,
},
customFooterOptions: {
dateFormat: 'YYYY-DD-MM h:mm:ss a',
dateFormat: 'YYYY-MM-DD, hh:mm a',
hideTotalItemCount: false,
hideLastUpdateTimestamp: true,
footerHeight: 20,
Expand Down

0 comments on commit 5297b7c

Please sign in to comment.