Moto G5. Date set on june 29th and no internet connection on wi-fi and mobile data

All of a sudden I do not have Internet connection even if mobile data are on and also wi-fi is on
In this last case I can even see the assigned IP. I tested wi-fi on two different routers with different internet providers.
Also on turning on the phone, the date is reset to June 29th 2022 8:10 AM, which apparently is the very same date of the release

e-montana-userdebug 11 RQ3A.211001.001 eng.root.20220629.061054 dev keys

Any suggestion ?

PS. on turning off Advanced privacy, internet is back but the date is still wrong