Made some fixes to dates with no tags. It was giving: UnboundLocalError: local variable 'tag' referenced before assignment

It seems to work now