Skip to content

Commit 58c2650

Browse files
committed
fix datetime
1 parent 344ee6e commit 58c2650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluent.runtime/fluent/runtime/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def native_to_fluent(val):
5454
if isinstance(val, Decimal):
5555
return FluentDecimal(val)
5656

57+
if isinstance(val, datetime):
58+
return FluentDateTime.from_date_time(val)
5759
if isinstance(val, date):
5860
return FluentDate.from_date(val)
59-
if isinstance(val, datetime):
60-
return FluentDateTime.from_date(val)
6161
return val
6262

6363
def reference_to_id(ref):

0 commit comments

Comments
 (0)