Fixed handling of fractional seconds