Skip to content

Commit

Permalink
RETURN datetime() should return local time (TuGraph-family#713)
Browse files Browse the repository at this point in the history
resolve TuGraph-family#691

Signed-off-by: Junwang Zhao <[email protected]>
  • Loading branch information
zhjwpku authored Oct 25, 2024
1 parent 3402da8 commit e4c5a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cypher/arithmetic/arithmetic_expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ cypher::FieldData BuiltinFunction::DateTime(RTContext *ctx, const Record &record
if (args.size() > 2) CYPHER_ARGUMENT_ERROR();
if (args.size() == 1) {
// datetime() Returns the current DateTime.
return cypher::FieldData(::lgraph::FieldData(::lgraph::DateTime::Now()));
return cypher::FieldData(::lgraph::FieldData(::lgraph::DateTime::LocalNow()));
} else {
CYPHER_THROW_ASSERT(args.size() == 2);
// datetime(string) Returns a DateTime by parsing a string.
Expand Down

0 comments on commit e4c5a44

Please sign in to comment.