Automatic break time is sometimes not calculated in Terminal

Task #11834

 

After the correction, automatic break deduction is also correctly calculated for time stamps in Terminal mode.