fixed some bugs in parsing cli time argument