# 先关闭自动时间同步
sudo timedatectl set-ntp false
sudo date -s "$(powershell.exe -Command "Get-Date -Format 'yyyy-MM-dd HH:mm:ss'" | tr -d '\r')"
# 可选:重新开启自动同步
sudo timedatectl set-ntp true需要先重启wsl,在启动项目

# 先关闭自动时间同步
sudo timedatectl set-ntp false
sudo date -s "$(powershell.exe -Command "Get-Date -Format 'yyyy-MM-dd HH:mm:ss'" | tr -d '\r')"
# 可选:重新开启自动同步
sudo timedatectl set-ntp true需要先重启wsl,在启动项目
