How to time travel with magic