Skip to content

Fixed EPM policy time filter to use 24-hour format (HH-HH)#1917

Merged
sshrushanth-ks merged 1 commit intoepm-policy-time-format-fixfrom
epm-policy-time-format-fix-int
Apr 7, 2026
Merged

Fixed EPM policy time filter to use 24-hour format (HH-HH)#1917
sshrushanth-ks merged 1 commit intoepm-policy-time-format-fixfrom
epm-policy-time-format-fix-int

Conversation

@sshrushanth-ks
Copy link
Copy Markdown
Contributor

  • The CLI was storing time ranges in HH:MM:SS format, inconsistent with the Admin Console which stores hours as plain integers (0-23). This caused the Admin Console EPM policy popup to break when policies were set via CLI.

  • Updated to_time to reject any input containing minutes/seconds and accept only integer hours (0-23), stored as bare integer strings to match Admin Console behaviour. Updated from_time to handle both the legacy HH:MM:SS format and the new integer format for backward compatibility. Updated the --time-filter help text to reflect the new HH-HH format (e.g. 9-17).

@sshrushanth-ks sshrushanth-ks merged commit a033a8c into epm-policy-time-format-fix Apr 7, 2026
4 checks passed
@sshrushanth-ks sshrushanth-ks deleted the epm-policy-time-format-fix-int branch April 16, 2026 10:07
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.

4 participants