We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 344ee6e commit 58c2650Copy full SHA for 58c2650
fluent.runtime/fluent/runtime/utils.py
@@ -54,10 +54,10 @@ def native_to_fluent(val):
54
if isinstance(val, Decimal):
55
return FluentDecimal(val)
56
57
+ if isinstance(val, datetime):
58
+ return FluentDateTime.from_date_time(val)
59
if isinstance(val, date):
60
return FluentDate.from_date(val)
- if isinstance(val, datetime):
- return FluentDateTime.from_date(val)
61
return val
62
63
def reference_to_id(ref):
0 commit comments