Add options argument to parse_dt
Committed 5ad65c
--- a/web/framework/__init__.py
+++ b/web/framework/__init__.py
return dict(handlers)[best_match](*args, **kwargs)
-def parse_dt(dt: str) -> pendulum.datetime.DateTime:
- """Return the current datetime."""
- return pendulum.parser.parse(dt)
+def parse_dt(dt: str, **options) -> pendulum.datetime.DateTime:
+ """Parse `dt` and return a datetime object."""
+ return pendulum.parser.parse(dt, **options)
def now() -> pendulum.datetime.DateTime: