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

Tedious useUTC on Insert & Select #1478

Open
shiroze opened this issue Mar 16, 2023 · 3 comments
Open

Tedious useUTC on Insert & Select #1478

shiroze opened this issue Mar 16, 2023 · 3 comments

Comments

@shiroze
Copy link

shiroze commented Mar 16, 2023

Why there's bug between Insert & Select when using useUTC:false ?

Condition not using useUTC:false

SQL Server Select
image
Postman Select
image

Condition when useUTC:false

Postman Select
image

If I don't set useUTC to false when insert the datetime become UTC+00:00 (04:58:30)

Expected Behavior set useUTC:false

when Insert get the value 11:58:30

Software versions

  • NodeJS: 18.10.0
  • node-mssql: 9.1.1
  • SQL Server: 2016
@dhensby
Copy link
Collaborator

dhensby commented Mar 16, 2023

Could this be related to this comment: #439 (comment) ?

@shiroze
Copy link
Author

shiroze commented Mar 17, 2023

Could this be related to this comment: #439 (comment) ?

Yes, But I'm not using New Date() or Now condition.
I'm passing string datetime "2023-03-16 11:58:30"

I think the problem come from tedious. I try using same method and return same result

@dhensby
Copy link
Collaborator

dhensby commented Mar 17, 2023

Ok, then you will need to raise this with tedious if you think it's an error from the driver

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

2 participants