Is the sentence "I don't know when it will end." when you are referring to time correct? Or should it be "I don't know what time it will end."