Hello,
Are you using Windows 11, and is your device connected to the internet when you try to sign in?
try these:
Click Start, then go to Settings.
Select Time and language.
Click Date and time.
Turn on Set time automatically.
Turn on Set time zone automatically.
Click Sync now under Additional settings.
Make sure your region is correct under Settings, Time and language, Language and region. Restart your device after syncing. If the error continues, confirm your device shows the correct time zone and today’s date on the taskbar before signing in again.