You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Comparision to actual time doesn't work in
To Reproduce
Steps to reproduce the behavior:
in Advanced Access Configuration / Filter Engines / VLAN Filters create a new filter
add a value to the condition
select a field to compare containing a date like e.g. node_info.regdate
select as comparision 'date is before' or 'date is after'
the empty field on the right side is marked with 'Value required' ¹⁾
put 'now' into that field to compare to the actual time at the moment of evaluation
fill out the rest and save
When the rule is evaluated this will lead to the error Error parsing time at /usr/local/pf/lib_perl/lib/perl5/x86_64-linux-gnu-thread-multi/Time/Piece.pm line 598.
¹⁾ This code in date_before.pm and in date_after.pm seems to be ment to use the actual date if the field marked with 'Value required' unfilled which the web gui doesn't allow and which leads to an error if edited in vlan_filters.conf .
Screenshots
Expected behavior
Have a clear and self-explaining way to compare a date/time field to the actual time of evaluation.
Desktop (please complete the following information):
OS: Debian
Browser Firefox
Version Packetfence 13.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Comparision to actual time doesn't work in
To Reproduce
Steps to reproduce the behavior:
When the rule is evaluated this will lead to the error
Error parsing time at /usr/local/pf/lib_perl/lib/perl5/x86_64-linux-gnu-thread-multi/Time/Piece.pm line 598.
¹⁾ This code in date_before.pm and in date_after.pm seems to be ment to use the actual date if the field marked with 'Value required' unfilled which the web gui doesn't allow and which leads to an error if edited in vlan_filters.conf .
Screenshots
Expected behavior
Have a clear and self-explaining way to compare a date/time field to the actual time of evaluation.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: