Mac lost connection to apple server
Hi! My mac was off for +\- 2 weeks and when i charged and restarted it the date was back to Aug 2022. I tried to reset it automatically but then it seemed like it was not connecting to the apple server. Tried to log out of my apple ID and then it also said failed due to not being able to connect to the apple server. How do I get my Mac back up to date so I can access my apps?
macbook pro 16 m2
MacBook Pro 14″, macOS 14.1