The premise is false: the sun does not rise in the west and set in the east in Panama—or anywhere on Earth. Earth rotates west to east on its axis, causing the sun to appear to rise in the east and set in the west universally. Panama's location near the equator means day length is consistent year-round (~12 hours), but the solar path direction is the same as everywhere else.