Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…es #2.
  • Loading branch information...
commit d302df73f431cff055f2d006b78b3f756b9d6e5a 1 parent 23b623a
Hiroshi Nakamura authored December 13, 2004
4  lib/pgp/packet/sigsubpacket/expirationtime.rb
@@ -28,12 +28,12 @@ def initialize(time = nil)
28 28
   end
29 29
 
30 30
   def time=(time)
31  
-    @time = Time.at(time.to_i)
  31
+    @time = time.to_i
32 32
   end
33 33
 
34 34
   def scan(io)
35 35
     super
36  
-    io.puts "Time - #{@time}"
  36
+    io.puts "Time - #{@time / 3600 / 24} days (#{@time} secs)"
37 37
   end
38 38
 
39 39
 private
4  lib/pgp/packet/sigsubpacket/keyexpirationtime.rb
@@ -30,12 +30,12 @@ def initialize(time = nil)
30 30
   attr_reader :time
31 31
 
32 32
   def time=(time)
33  
-    @time = Time.at(time.to_i)
  33
+    @time = time.to_i
34 34
   end
35 35
 
36 36
   def scan(io)
37 37
     super
38  
-    io.puts "Time - #{@time}"
  38
+    io.puts "Time - #{@time / 3600 / 24} days (#{@time} secs)"
39 39
   end
40 40
 
41 41
 private

0 notes on commit d302df7

Please sign in to comment.
Something went wrong with that request. Please try again.