The Tampa Bay Lightning seemed set to live through another Groundhog Day moment, seeing defeat again snatched from the jaws of victory despite strong play.

But before the shadow could cast itself over another somber Tampa Bay postgame locker room, Steven Stamkos made sure it was the Tesla coils that illuminated the darkness overhead.

Stamkos scored 30 seconds into overtime for his league-leading 19th goal of the season to lift the Lightning to a 5-4 victory in front of an announced crowd of 17,241 at the St. Pete Times Forum.

The winning goal, Which Stamkos scored after setting up on the back post to knock in an Eric Brewer pass, helped overcome a disastrous third period that saw Calgary erase a two-goal deficit on goals by Rene Bourque 58 seconds into the third and a power play marker by Olli Jokinen to tie the score with 3:12 left.

The victory was just the second in the past nine games for the Lightning, but also the second in the last four.

"We've been battling for points, and we feel that we have been playing better, but that doesn't always show up on the scoresheet and it can be tough to show that,'' Brewer said. "But tonight we found a way to win even though it was a goofy game at times.''

The Lightning scored three consecutive goals – by Tom Pyatt, Ryan Malone and Nate Thompson – in the second period to overcome a 2-1 deficit early in the second and build a 4-2 lead following a dominant middle frame in which Tampa Bay fired a season-high 18 shots on goal.