Skip to content

Templating: date helper is incompatible with queryParam #750

@255kb

Description

@255kb

Describe the bug

Using the date helper with queryParam is not possible due to a SafeString return value.

To Reproduce

{{date (queryParam 'dateFrom') (queryParam 'dateTo') 'YYYY'}}

Called with ?dateFrom=2022-06-01T00:00:00.000Z&dateTo=2022-06-03T12:00:00.000Z
Returns an empty string.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done (ready for next release)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions