Lupin III: Sweet Lost Night - Mahou no Lamp wa Akumu no Yokan
Lupin scores a "magic lamp" and finds it does hold a genie. However, the stroke of 7PM strikes, and that is the last thing he remembers. Finding himself in Singapore, Lupin must battle his way past the forces of Colonel Garlic and discover the secret behind the lamp. But every time the clock strikes 7PM, his memory is wiped clean! How can Lupin piece together this puzzle, when he can't even remember what he is doing?!
(Source: Lupin III Encyclopedia)