Skip to content

Commit 6c55e49

Browse files
authored
fix: Use dateutil parser to parse materialization times (#2464)
Signed-off-by: Achal Shah <[email protected]>
1 parent ff7c7fa commit 6c55e49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/python/feast/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import pkg_resources
2323
import yaml
2424
from colorama import Fore, Style
25+
from dateutil import parser
2526

2627
from feast import flags, flags_helper, utils
2728
from feast.constants import DEFAULT_FEATURE_TRANSFORMATION_SERVER_PORT
@@ -41,7 +42,6 @@
4142
)
4243

4344
_logger = logging.getLogger(__name__)
44-
DATETIME_ISO = "%Y-%m-%dT%H:%M:%s"
4545

4646

4747
class NoOptionDefaultFormat(click.Command):
@@ -501,8 +501,8 @@ def materialize_command(
501501
store = FeatureStore(repo_path=str(repo))
502502
store.materialize(
503503
feature_views=None if not views else views,
504-
start_date=utils.make_tzaware(datetime.fromisoformat(start_ts)),
505-
end_date=utils.make_tzaware(datetime.fromisoformat(end_ts)),
504+
start_date=utils.make_tzaware(parser.parse(start_ts)),
505+
end_date=utils.make_tzaware(parser.parse(end_ts)),
506506
)
507507

508508

0 commit comments

Comments
 (0)