Skip to content

Angular date:timezone Filter Still Not Working On CellFilter Property #6361

@tramel-woodard

Description

@tramel-woodard

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions