iachat/app/javascript/dashboard/store/modules/conversations/helpers
Shivam Mishra 27bce50210
fix: Incorrect date parsing in matchesFilter (#11679)
The `matchesFilter` is a utility that checks the incoming payload
against a filter and returns `true` or `false`.
For the `greater_than` and `less_than` filter specifically, the date
parsing would fail when the timestamp was a 10 digit number.

This PR solves this by adding a `coerceToDate` method that tries to
parse the given value to a Date object as correctly as possible before
comparing.

Ref: https://github.com/chatwoot/utils/pull/53
2025-06-05 19:38:56 -05:00
..
specs fix: Incorrect date parsing in matchesFilter (#11679) 2025-06-05 19:38:56 -05:00
actionHelpers.js fix:Avoid adding all new conversations when on a custom view (#8905) 2024-02-12 07:10:53 -08:00
filterHelpers.js fix: Incorrect date parsing in matchesFilter (#11679) 2025-06-05 19:38:56 -05:00