#1443: [patch] no support for dates before 1900
----------------------------------+-----------------------------------------
Reporter: akaihola | Owner: adrian
Status: reopened | Component: Core framework
Version: SVN | Resolution:
Keywords: date 1900 datetime | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------+-----------------------------------------
Changes (by anonymous):
* cc: [EMAIL PROTECTED] (added)
Comment:
I'm also having problems with dates before 1900, using the current SVN
version and newforms:
Traceback (most recent call last):
File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in
get_response
77. response = callback(request, *callback_args, **callback_kwargs)
File "C:\Documents and
Settings\Usu�rio\Desktop\projeto1\exemplos\projeto1\cadastro\views.py" in
lista_cliente
37. form.save()
File "C:\Python25\lib\site-packages\django\newforms\models.py" in save
56. return save_instance(self, instance, fields, fail_message, commit)
File "C:\Python25\lib\site-packages\django\newforms\models.py" in
save_instance
35. instance.save()
File "C:\Python25\lib\site-packages\django\db\models\base.py" in save
217. db_values = [f.get_db_prep_save(f.pre_save(self, False)) for f in
non_pks]
File "C:\Python25\lib\site-packages\django\db\models\fields\__init__.py"
in get_db_prep_save
496. value = value.strftime('%Y-%m-%d')
ValueError at /cadastro/clientes/8/
year=1000 is before 1900; the datetime strftime() methods require year
>= 1900
--
Ticket URL: <http://code.djangoproject.com/ticket/1443#comment:6>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---