lib/QuickBaseClient.rb in quickbase_client-1.0.3 vs lib/QuickBaseClient.rb in quickbase_client-1.0.4
- old
+ new
@@ -1341,9 +1341,13 @@
milliseconds_s = milliseconds.to_s
if milliseconds_s.length == 13
t = Time.at( milliseconds_s[0,10].to_i, milliseconds_s[10,3].to_i )
t += (60 * 60 * 24) if addDay
fmt = t.strftime( fmtString )
+ elsif milliseconds_s.length > 0
+ t = Time.at( (milliseconds_s.to_i) / 1000 )
+ t += (60 * 60 * 24) if addDay
+ fmt = t.strftime( fmtString )
end
end
fmt
end