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

Datetime should be Timestamp_ntz #73

Closed
Ajith-Raja opened this issue Jun 20, 2023 · 6 comments
Closed

Datetime should be Timestamp_ntz #73

Ajith-Raja opened this issue Jun 20, 2023 · 6 comments

Comments

@Ajith-Raja
Copy link

'DateTimeField': 'TIMESTAMP_LTZ',

timestamp_ltz is converting the time and inserting, whereas timestamp_ntz inserts the time as it is, so better use timestamp_ntz. Is there any reason in using timestamp_ltz.

@timgraham
Copy link
Collaborator

TIMESTAMP_LTZ is used for Django's time zone support (9461268).

Are you encountering a specific problem?

@Ajith-Raja
Copy link
Author

Yes is is something like converting the passed datetime to other timezone when inserting

@Ajith-Raja
Copy link
Author

Ajith-Raja commented Jun 20, 2023

so we are dropping the column and creating with timestamp_ntz manually

can you pls check with TIMESTAMP_NTZ

@timgraham
Copy link
Collaborator

Django's time zone support isn't possible with TIMESTAMP_NTZ. Can you provide a minimal sample Django project with a failing test case that demonstrates your problem? Django's own test suite has many time zone tests and they are all passing with the current implementation.

@Ajith-Raja
Copy link
Author

https://docs.snowflake.com/en/sql-reference/data-types-datetime

just saw the doc TIMESTAMP_LTZ internally stores UTC time with a specified precision

@timgraham
Copy link
Collaborator

If you think there's a bug, please include steps to reproduce it.

Closing as invalid.

@timgraham timgraham closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2023
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