Skip to content

Commit a8be051

Browse files
committed
Using LOCALTIMESTAMP (DNET-967).
1 parent 0131379 commit a8be051

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Provider/src/FirebirdSql.EntityFrameworkCore.Firebird/Query/ExpressionTranslators/Internal/FbDateTimeNowTodayTranslator.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public SqlExpression Translate(SqlExpression instance, MemberInfo member, Type r
3838
{
3939
if (member.DeclaringType == typeof(DateTime) && member.Name == nameof(DateTime.Now))
4040
{
41-
// LOCALTIMESTAMP
42-
return _fbSqlExpressionFactory.NiladicFunction("CURRENT_TIMESTAMP", false, typeof(DateTime));
41+
return _fbSqlExpressionFactory.NiladicFunction("LOCALTIMESTAMP", false, typeof(DateTime));
4342
}
4443
if (member.DeclaringType == typeof(DateTime) && member.Name == nameof(DateTime.Today))
4544
{

0 commit comments

Comments
 (0)