Only warn about epoch if sync or validation is required
@@ -468,6 +468,7 @@ class MicroPythonBackend(MainBackend, ABC):
return 2000
else:
result = self._resolve_unknown_epoch()
+ if self._args.get("sync_time") or self._args.get("validate_time"):
print("WARNING: Could not determine epoch year (%s), assuming %s" % (val, result))
return result
