Windows WSLで時刻を同期させる
date
をすると過去日付が返ってきてしまい、AWSでも RequestTimeTooSkewed
エラーが返ってきてしまったので対応メモ
# 2020/7/8実行 $ date 2020年 7月 4日 土曜日 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