Punishment under the legislation could result in up to a year in jail.