angular-ui/ui-grid

Angular date:timezone Filter Still Not Working On CellFilter Property

Open

#6,361 opened on 2017年8月16日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)JavaScript (5,395 stars) (2,496 forks)batch import
good first issue

説明

Please make sure each of the following is true before submitting a new issue. We are a small team with limited time and it is very difficult to manage issues if they aren't reported correctly.

  • This is a bug report, not a question on how to use the grid.

Researched this issue regarding the ui-grid cellFilter and integration of ngFilter's date and timezone properties.

  • You have searched the open issues to see if this bug has been filed before. We don't want duplicate issues.

Recently commented on #2706 but decided to open a new issue due to length of time.

  • You have reviewed the tutorials and documentation to ensure you are using the grid correctly. ui-grid.info

Reviewed tutorials regarding cellFilter extensively and more so the ngFilter documentation from AngularJS docs.

  • You are using the latest version of the grid. Older versions are not patched or supported.

Currently using the latest version as of posting (4.0.6).

  • You have provided steps to recreate your bug. A plunkr is even better.

Below is a typical date field, being pulled from a data object, where the field name is fieldfromdb. The date format in the cellFilter seems to work across all versions tried:

{ displayName: 'Some Date', field: 'fieldfromdb', cellFilter: 'date : \'MM-DD-YYYY\'',}`

However, what seems like an easy implementation of timezone in the ui-grid's gridOptions object (in the same fieldfromdb object) doesn't seem to be working:

{ displayName: 'Some Date', field: 'fieldfromdb', cellFilter: 'date : \'MM-DD-YYYY\' : \'UTC\'', }

Any updates on this issue?

コントリビューターガイド