Any of the two scenarios,
1.protagonist goes back in time ( not 500 or 600 years, within 10-20 years, a time that could be aged up to) . Falls in love with somebody. then returns to his own timeline. after returning they find their lover again, who is obviously older than before.
2. Or protagonist goes into future, falls in love, comes back to their timeline. then after their timeline hits the year which they traveled to, they meet their lover.
#it can also be something like ditto where they dont actually meet but communicate by a transmitter . doesn't have to be a sweet ending but their second grown up interaction has to be there. anything like that?