Skip to content

Commit

Permalink
Fix dostime
Browse files Browse the repository at this point in the history
Should prevent packing errors.

Thanks @philomory!
  • Loading branch information
sj26 committed Nov 30, 2012
1 parent c7c5177 commit ea9a7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zipstream.rb
Expand Up @@ -126,7 +126,7 @@ def close
protected

def dostime datetime
datetime.year << 25 | datetime.month << 21 | datetime.day << 16 | datetime.hour << 11 | datetime.min << 5 | datetime.sec >> 1
(datetime.year - 1980) << 25 | datetime.month << 21 | datetime.day << 16 | datetime.hour << 11 | datetime.min << 5 | datetime.sec >> 1
end
end

Expand Down

0 comments on commit ea9a7d2

Please sign in to comment.