fix a bug on command with only time

-fix a bug on command with only time
-The date assigned is now the current date