Please add some details about "will only work for 10 minutes".
Do you mean the computer shuts down after 10 minutes, or that the time changes to some other time zone?
What do you do to bring the computer back - E.g., a restart or a complete power off and boot?
Windows 10? Look at Reliabiltiy history before the computer shuts down. Should be some regular pattern of error codes and warnings that may provide helpful information about the problem.