For the passive voice in the past (E.g. It was eaten), I've always used the imparfait:
Il était mangé
However, I've seen people say:
Il a été mangé.
Which one should be used when? My initial impression is that the first syntax is, "It was eaten", while the second is, "It has been eaten", but I don't know. Could you guys clarify when to use which one?