diff --git a/lib/xsd/datatypes.rb b/lib/xsd/datatypes.rb index 0e9669c..61060ac 100644 --- a/lib/xsd/datatypes.rb +++ b/lib/xsd/datatypes.rb @@ -655,7 +655,7 @@ def _to_s s << ".#{ @secfrac }" else s << sprintf("%.16f", - (@data.sec_fraction * DayInSec).to_f).sub(/^0/, '').sub(/0*$/, '') + @data.sec_fraction.to_f).sub(/^0/, '').sub(/0*$/, '') end end add_tz(s) @@ -705,7 +705,7 @@ def _to_s s << ".#{ @secfrac }" else s << sprintf("%.16f", - (@data.sec_fraction * DayInSec).to_f).sub(/^0/, '').sub(/0*$/, '') + @data.sec_fraction.to_f).sub(/^0/, '').sub(/0*$/, '') end end add_tz(s)