Permalink
Browse files

wrongly dumped signature expiration time and key expiration time. fix…

…es #2.
  • Loading branch information...
1 parent 23b623a commit d302df73f431cff055f2d006b78b3f756b9d6e5a @nahi committed Dec 13, 2004
View
4 lib/pgp/packet/sigsubpacket/expirationtime.rb
@@ -28,12 +28,12 @@ def initialize(time = nil)
end
def time=(time)
- @time = Time.at(time.to_i)
+ @time = time.to_i
end
def scan(io)
super
- io.puts "Time - #{@time}"
+ io.puts "Time - #{@time / 3600 / 24} days (#{@time} secs)"
end
private
View
4 lib/pgp/packet/sigsubpacket/keyexpirationtime.rb
@@ -30,12 +30,12 @@ def initialize(time = nil)
attr_reader :time
def time=(time)
- @time = Time.at(time.to_i)
+ @time = time.to_i
end
def scan(io)
super
- io.puts "Time - #{@time}"
+ io.puts "Time - #{@time / 3600 / 24} days (#{@time} secs)"
end
private

0 comments on commit d302df7

Please sign in to comment.