django-clickhouse-backend icon indicating copy to clipboard operation
django-clickhouse-backend copied to clipboard

[QUESTION] Is there a way to specify timezone in DateTime64Field?

Open cx-agy opened this issue 1 year ago • 2 comments

Looks like it's hardcoded to 'UTC'

cx-agy avatar Aug 16 '24 14:08 cx-agy

Looks like it's hardcoded to 'UTC'

This is intentional, to be consistent with the behavior of postgresql backend.

jayvynl avatar Aug 17 '24 01:08 jayvynl

Anyway, do you really need to set timezone in database level? The recommended way to deal with timezone is using django.utils.timezone module.

jayvynl avatar Aug 17 '24 01:08 jayvynl