Skip to content
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

Allow timestamps when encoding json #1935

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Conversation

macneale4
Copy link
Contributor

@macneale4 macneale4 commented Aug 10, 2023

As reported on discord, Nautobot, through DJango, puts time stamp data into a json object. This fails because:

db> select JSON_OBJECT("a", Now());
unsupported type: time.Time

This change enables the encoding of a time stamp into a string.

@macneale4 macneale4 requested a review from zachmu August 10, 2023 21:43
@macneale4 macneale4 merged commit 3ab2558 into main Aug 10, 2023
7 checks passed
@macneale4 macneale4 deleted the macneale4/json_encode_time branch August 10, 2023 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants