The lien shall attach in all cases where a liability has been created, without regard to the time of such board or lodging.