The Problem is y' = cos(y - t), find general solution

My thought is to convert them to separable form

y - t = u ---> --> Plug them back to original F

I integrate 2 sides

and I got stuck on this one , please help me solve this problem

or if you have different method to find the general solution for the problem please help me

Thank you