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

Feature: Support for writing datetime values in ISO format #324

Open
2 tasks done
Luxbit opened this issue Aug 5, 2024 · 0 comments
Open
2 tasks done

Feature: Support for writing datetime values in ISO format #324

Luxbit opened this issue Aug 5, 2024 · 0 comments

Comments

@Luxbit
Copy link

Luxbit commented Aug 5, 2024

Is your feature request related to a problem?

Currently, it is inconvenient to convert each date into a JavaScript Date object before writing it to the database. This process introduces unnecessary complexity and overhead, especially when having to use regex to convert date strings.

This worked fine in versions < 1.0.0. I don't really understand why this was changed.

Describe the solution

Allow dates to be passed as ISO strings, like it is possible in SurrealDB itself

SurrealDB version

surreal 1.5.0 for linux on aarch64

JavaScript SDK version

1.0.0-beta.12

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Luxbit Luxbit changed the title Feature: Support ISO Format for Datetime Feature: Support for writing datetime values in ISO format Aug 5, 2024
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

No branches or pull requests

1 participant