Fixed minor time format bug and added more helpful time format error
message.