Comments (1)
Just set USE_TZ = True
in settings.py
, which is the default. Then time will have UTC timezone when retrieved from database. You can change time to local timezone with django timezone utils.
from django.utils import timezone
timezone.localtime(time)
from django-clickhouse-backend.
Related Issues (20)
- [BUG] django_migrations.deleted HOT 7
- [BUG] Connection pool does not take effect HOT 1
- 请问是否考虑支持物化视图?包括分布式的物化视图哇~ HOT 3
- python manage.py migrate not working HOT 18
- [BUG] inspectdb dosent work with leatest backend version HOT 2
- [BUG] DB Error 386 when updating JSONField HOT 2
- [BUG ] UUID like id dont work afrter upate 1.0.1 -> 1.1.4 HOT 1
- Supporting Integration Engines HOT 1
- [Feature Request] Support for CityHash64
- [DOCS] The changelog does not list version 1.1.4 HOT 4
- [BUG] - Package taking time to render response. HOT 7
- Window func not working HOT 2
- Support for AggregateFunction under AMT HOT 3
- Unexpected 'driver' HOT 1
- [QUESTION] DB::Exception: Syntax error: failed at position 268 ('<'): <clickhouse_backend.models.fields.integer.UInt64Field> HOT 3
- [BUG] AttributeError: 'ReplicatedReplacingMergeTree' object has no attribute 'expressions' HOT 6
- Error. Code 102 HOT 3
- support for "prewhere" HOT 1
- [BUG] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-clickhouse-backend.