We use Macs and iPhones for development. We hit an interesting situation when one of the phones was used to develop Naksho and was capturing time sensitive upload requests to AWS. Yes, S3 signed image upload requests with 60 second expiry vs. the default was the use case.
Well, the phone would get errors when it tried to upload the image.
The EC2 server was 3-4 minutes ahead of the Mac and the iPhone so that explains why AWS was rejecting the request. Quick net search:
- http://osxdaily.com/2016/05/07/fix-mac-showing-wrong-time-date/ – didn’t help
- https://www.imore.com/how-fix-your-macs-clock-when-it-displays-wrong-time – didn’t help
- http://www.idownloadblog.com/2016/11/23/fix-mac-showing-wrong-time/ – reboot – what????!!!
The fix was to restart the Mac with the iPhone connected and voilà the time was correct on the Mac and the iPhone. Obviously, the image upload requests started working. I guess we need to reboot Macs ever so often 🙂