Django API timezone Dates in UTC -


i'm developing api in django (note not drf).

i'm having problem datetime timezones. i'm storing in utc, in front-end convert them current timezone moment.js.

but have problem datefields, example:

confirm_pickup_date = models.datefield(blank=true, null=true) 

where confirm_pickup_date can either server current time, or custom date sent client front-end yyyy-mm-dd format. when send date client, cant convert date utc


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -