when using as only timepicker 00:00 is considered as invalid

because the timestamp is then 0 and if(0) return false
but 0 is valid