Windows WSLで時刻を同期させる

date をすると過去日付が返ってきてしまい、AWSでも RequestTimeTooSkewed エラーが返ってきてしまったので対応メモ

# 2020/7/8実行
$ date
202074日 土曜日 15:02:22 JST
~/work/rails/tsukulink (master)
$ ntpdate
 4 Jul 15:02:44 ntpdate[4968]: no servers can be used, exiting
$ aws s3 ls
An error occurred (RequestTimeTooSkewed) when calling the ListObjectsV2 operation: The difference between the request time and the current time is too large.

対応

sudo ntpdate ntp.nict.jp