Improved dealing with time for video import