"It was at midnight that God chose to deliver His people. As the wicked were mocking around them, suddenly the sun appeared, shining in his strength, and the moon stood still. The wicked looked upon the scene with amazement, while the saints beheld with solemn joy the tokens of their deliverance. Signs and wonders followed in quick succession. Everything seemed turned out of its natural course. The streams ceased to flow. Dark, heavy clouds came up and clashed against each other. But there was one clear place of settled glory, whence came the voice of God like many waters, shaking the heavens and the earth. There was a mighty earthquake. The graves were opened, and those who had died in faith under the third angel's message, keeping the Sabbath, came forth from their dusty beds, glorified, to hear the covenant of peace that God was to make with those who had kept His law. EW 285"
"Immediately after the tribulation of those days shall the sun be darkened, and the moon shall not give her light, and the stars shall fall from heaven, and the powers of the heavens shall be shaken:"
Both passages describe cosmic disturbances (sun darkened, moon not giving light) as signs preceding a significant event. While the details differ, the overall theme of celestial upheaval signaling a major divine intervention is clear.
The sky opened and shut and was in commotion. The mountains shook like a reed in the wind and cast out ragged rocks all around. The sea boiled like a pot and cast out stones upon the land. And as God spoke the day and the hour of Jesus’ coming and delivered the everlasting covenant to His people, He spoke one sentence, and then paused, while the words were rolling through the earth. The Israel of God stood with their eyes fixed upward, listening to the words as they came from the mouth of Jehovah and rolled through the earth like peals of loudest thunder. It was awfully solemn. At the end of every sentence the saints shouted, “Glory! Hallelujah!” Their countenances were lighted up with the glory of God, and they shone with glory as did the face of Moses when he came down from Sinai. The wicked could not look upon them for the glory. And when the never- ending blessing was pronounced on those who had honored God in keeping His Sabbath holy, there was a mighty shout of victory over the b…
"And I beheld when he had opened the sixth seal, and, lo, there was a great earthquake; and the sun became black as sackcloth of hair, and the moon became as blood; And the stars of heaven fell unto the earth, even as a fig tree casteth her untimely figs, when she is shaken of a mighty wind. And the heaven departed as a scroll when it is rolled together; and every mountain and island were moved out of their places."
Both passages describe a cataclysmic event involving earthquakes, shaking mountains, and a departing heaven. The EGW passage expands on the Revelation imagery, but the core elements are undeniably present.