Setting DS3231 from GPS

Not sure what You try to tell. Why use an RTC if You get that data from the GPS?

One way could be collecting Date/Time from the GPS at the start up of the controller and set the RTC.

It tells nothing useful.