So "tafarn" can be either masculine or feminine?
Tafarn is feminine, hence y dafarn, i'r dafarn, etc. Stick with the feminine form.
(Except sometimes tafarn is masculine in parts of Glamorgan)
And the English sounds odd here, too. 'When did she leave the pub?' sounds more natural.