Skip to content

Commit 0ae2a9d

Browse files
committed
Неверно был указан тип преобразования для Даты.
1 parent c455964 commit 0ae2a9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/OneScript.Native/Compiler/MethodCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ private Expression CreateBuiltInFunctionCall(CallNode node)
13101310
result = DirectConversionCall(node, typeof(string));
13111311
break;
13121312
case Token.Date:
1313-
result = DirectConversionCall(node, typeof(string));
1313+
result = DirectConversionCall(node, typeof(DateTime));
13141314
break;
13151315
case Token.Type:
13161316
CheckArgumentsCount(node.ArgumentList, 1);

0 commit comments

Comments
 (0)