Skip to content

Investigate on different timezone returned by the connector #295

@utnaf

Description

@utnaf

Given this pyspark script

dtString = "2015-06-24T12:50:35"

# init_test runs the query on the db and returns a DataFrame
df = init_test(
    "CREATE (p:Person {datetime: datetime($datetime)})",
    {"datetime": dtString}
)

dt = datetime.datetime(2015, 6, 24, 12, 50, 35)
dtResult = df.select("datetime").collect()[0].datetime

print(dt)
print(dtResult)

assert dt == dtResult

the assertions fails, the two printed dates are:

2015-06-24 12:50:35                                                             
2015-06-24 14:50:35

Investigate if the two hours difference is a spark connector writing/reading issue or if it's some sort of server / client misconfiguration.

/cc @conker84

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions