On 11/07/2014 1:44 PM, Neto wrote:
Hi guys, I need a help here:
*settings.py*
TIME_ZONE = 'America/Sao_Paulo'
*view.py:*
task = Task.objects.get(id=id)
task.start = request.GET['task_start']
tarefa.save()
Terminal:
RuntimeWarning: DateTimeField Task.start received a naive datetime
(2014-07-21 07:39:14) while time zone support is active.
Wherever you are getting that datetime from needs to be adjusted so it
provides a non-naive datetime ie., with UTC offset corresponding to Sao
Paulo.
I googled your error and saw a Stack Overflow discussion which might
help ...
http://stackoverflow.com/questions/21038881/datetimefield-received-a-naive-datetime
Good luck
Mike
RuntimeWarning)
What is it? Any solution?
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/e06f3e0f-e3f2-4c74-8161-411a668a6928%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/e06f3e0f-e3f2-4c74-8161-411a668a6928%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/53BF88A6.7090902%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.