Skip to content

Commit

Permalink
Try fixing date-parse issues w/ struct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danbernier committed Jul 26, 2024
1 parent 8e35a62 commit f0ba16b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puma/acme/structs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def self.from(acme_order)
end

def expired?(now: Time.now.utc)
expires < now
exp = expires
exp = DateTime.parse(expires).to_time if expires.is_a?(String)
exp < now
end
end
end
Expand Down

0 comments on commit f0ba16b

Please sign in to comment.