How do I solve the problem of Swift encoding and decoding Date variables with a little loss of precision when using a JSONEncoder/JSONDecoder? After running the Date through with .iso8601 encoding, I find the Date variables are off by under 1 second.