With specific times (clock times), we use the preposition "at". "At seven o'clock" is correct. "In" is for larger time periods (in the morning, in July, in 2024), "on" is for days and dates (on Monday, on July 4th), and "to" doesn't fit with clock times in this way.