-
Notifications
You must be signed in to change notification settings - Fork 197
neo4j.time.DateTime.now() doesn't accept tzinfo #1103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi and thanks for reaching out. Looking at the API docs, I find
Now this is not very explicit, I find, and I think this should be updated, but it hints at the core of the problem: back when I suppose making our custom temporal types work with TL;DR: use |
I see, I appreciate the detailed explanation! I must've overlooked that part in the doc while looking at the table comparing the neo4j.time types to the built-in types. I've changed to |
Hi, I'm running into the following bug where neo4j.time.DateTime.now() isn't accepting a tzinfo argument:
whereas ...Date.today() and ...Time.now() work fine:
I'm currently using a workaround like this:
It might just be caused by some legacy code in
...time/__init__.py
, and perhaps some changes like this would make it work and match the other now() and today() functions:I would make a pull request but I've just never worked on this project like this before, thanks.
My Environment
Python Version: 3.
Driver Version: 5.25.0
Server Version and Edition: Neo4j 5
Operating System: Arch Linux
The text was updated successfully, but these errors were encountered: