Discipline

So my little boy is two years old. I use time out as discipline and he responded to it very well. My issue is that his dad and grandma have him 2 days a week on the weekend and grandma believes that smacking his hands and spanking are okay. She doesnt do it hard or anything, yes I've talked to her about it but no she doesnt respect me and will do what she wants. I really dont want him to have his hands smacked or anything especially because he responds so well to other discipline. I cant keep him away from his dad which means grandma is there. What can I do?