Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now or never #8067

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from
Open

Now or never #8067

wants to merge 2 commits into from

Conversation

chri2
Copy link
Contributor

@chri2 chri2 commented Apr 4, 2024

Description

Allow in comparison of date/time fields to compare to the actual time of the moment of execution. 'now' is used as a placeholder for the time at execution.

Impacts

The former behaviour is not modified, but only extended to recognize the string 'now' as a time expression.

The old code in date_before.pm and in date_after.pm already seems to imply that an empty value would have let to use the actual time.

The web gui doesn't allow the empty value and leaving the field empty wouldn't help to make the rules more readable.

Issue

fixes #8066

Value string 'now' for time at the moment of evaluation.
@fdurand fdurand added this to the PacketFence-13.2 milestone Apr 8, 2024
@satkunas satkunas modified the milestones: PacketFence-13.2, PacketFence-14.0 Apr 16, 2024
@satkunas satkunas removed this from the PacketFence-14.0 milestone Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vlan filter: comparing date to actual time
4 participants