fix using clock in inventory
replace bad code for QString::arg usage