LINCOLN, Neb. (AP) — A former Nebraska state senator who has been working for the city of Lincoln has resigned his post after being ticketed for urinating in public.

Police say David Landis was charged Tuesday after an officer saw him urinating next to his car parked just west of the County-City Building last week.

Landis told the Lincoln Journal Star on Wednesday that he regrets what he did and accepts the consequences of what he says was an irresponsible act. The misdemeanor carries a sentence of up to six months in jail. Landis also says he's applied for pretrial diversion.

He has quit his job as director of Lincoln's Urban Development Department. Mayor Chris Beutler (BEYTE'-lur) appointed Landis to the position in 2007.

The two served together in the Legislature. Landis represented Lincoln's District 46 from 1979 to 2007, after term limits kept him from the ballot.

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.