lib/writeexcel/properties.rb in writeexcel-0.6.19 vs lib/writeexcel/properties.rb in writeexcel-1.0.0

- old
+ new

@@ -224,17 +224,19 @@ def pack_VT_FILETIME(localtime) #:nodoc: type = 0x0040 epoch = DateTime.new(1601, 1, 1) + t = localtime.getgm + datetime = DateTime.new( - localtime.year, - localtime.mon, - localtime.mday, - localtime.hour, - localtime.min, - localtime.sec, - localtime.usec + t.year, + t.mon, + t.mday, + t.hour, + t.min, + t.sec, + t.usec ) bignum = (datetime - epoch) * 86400 * 1e7.to_i high, low = bignum.divmod 1 << 32 [type].pack('V') + [low, high].pack('V2')