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

[READY] v2.x - Allow RubySaml::Utils.is_cert_expired and is_cert_active to accept an optional time argument #733

Open
wants to merge 3 commits into
base: v2.x
Choose a base branch
from

Conversation

johnnyshields
Copy link
Collaborator

No description provided.

# @return [Integer] The new timestamp, after the duration is applied.
#
def parse_duration(duration, timestamp=Time.now.utc)
def parse_duration(duration, timestamp = Time.now)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Safe to do Time.now without .utc here because it's converted to UTC below.

@johnnyshields johnnyshields force-pushed the v2.x-time-arg-to-utils branch from a838600 to 2f0d6d3 Compare January 11, 2025 04:01
@johnnyshields johnnyshields changed the title v2.x - Allow RubySaml::Utils.is_cert_expired and is_cert_active to accept an optional time argument [READY] v2.x - Allow RubySaml::Utils.is_cert_expired and is_cert_active to accept an optional time argument Jan 11, 2025
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.

1 participant