Fix timeseek

This is a4601a7 modified slightly for 3.x