'DateDiff' Lava Filter returns different results based on if the 'Date' Lava Filter has Formatting Elements or not #5070
Labels
Priority: High
Affects most production Rock installs in a way that will be noticed.
Topic: Lava
Related to the Lava templating language.
Type: Bug
Confirmed bugs or reports that are very likely to be bugs.
x-Fixed in v13.7
A Picture Is worth a Thousand Words
Description
When using the 'DateDiff' lava filter, if one of the DateTimes used in the DateDiff filter is generated using the 'Date' lava filter WITHOUT any formatting elements, the DateDiff will return a value that is an hour greater than what the actual result should be.
You can see this error play out in the images above. The first picture is of the lava code and the second picture is the result. As you can see, there is a difference of 3600 seconds when using the Date Filter Without Formatting Elements and the Date Filter With Formatting Elements.
Steps to Reproduce
You will need to use either the Lava Tester plugin or an HTML block.
Generate lava code similar to what is seen above
Click 'Save' or 'Test' (depending on whether you are using the Lava Tester or the HTML block)
View Results
Expected behavior:
The 'DateDiff' lava filter should return the same result whether or not the 'Date' lava filter has formatting elements.
Actual behavior:
The 'DateDiff' lava filter returns different results based on if the 'Date' lava filter has formatting elements or not.
Versions
The text was updated successfully, but these errors were encountered: