International Dateline
The ship is struck by lightning when it crosses the International Dateline, which places Cody in the same day over and over. He tries to use each day as a chance to let Bailey know how he feels about her, but something gets in the way every time. It's then up to Cody to divert the ship from the lightning to set them back on the right course.