Skip to content

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
@pitbulk pitbulk merged commit 5bb14c4 into SAML-Toolkits:v2.x Jan 13, 2025
19 of 20 checks passed
@pitbulk pitbulk changed the title [READY] v2.x - Allow RubySaml::Utils.is_cert_expired and is_cert_active to accept an optional time argument v2.x - Allow RubySaml::Utils.is_cert_expired and is_cert_active to accept an optional time argument Jan 13, 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.

2 participants