fix datetime validation in package publish command

This commit is contained in:
Shahrustam committed 2020-05-27 22:30:16 +03:00
1 parent c1965b607b
commit 8e72c48319
1 file changed
+2
+2
View File
@@ -23,6 +23,8 @@ from platformio.package.spec import PackageSpec, PackageType
def validate_datetime(ctx, param, value): # pylint: disable=unused-argument
if not value:
return value
try:
datetime.strptime(value, "%Y-%m-%d %H:%M:%S")
except ValueError as e: