Fixed bug in settime