Clearly the writer did not know about Space and did not know that the Sun does not move, let alone know that the earth is orbiting around the Sun and therefore the Sun is in its constant location.
Also why is the Book of Jashar not in the bible? clearly the bible is using it as a reference point, this indicates that it is necessary for us to read it too.
Joshua 10:12-13
12 On the day the Lord gave the Amorites over to Israel, Joshua said to the Lord in the presence of Israel:
“Sun, stand still over Gibeon,
and you, moon, over the Valley of Aijalon.”
13 So the sun stood still,
and the moon stopped,
till the nation avenged itself on[b] its enemies,
as it is written in the Book of Jashar.
The sun stopped in the middle of the sky and delayed going down about a full day.