How to sync time in a container

My container is out of sync and the s3 api calls are failing because of invalid time.

Are you running in a VM? VM’s often go out of sync with realtime and their host. If you’re using VirtualBox you might find useful information here: https://www.virtualbox.org/manual/ch09.html#idp46785391378144