Give them the 1 month notice. pay for that period and maybe let your friend enjoy free 1 month stay there. After 1 month your friend can collect the deposit and wire to your account.