Folks,
I have an input form where users enter a new date and time. If the user
enters 2007-01-01 and 01:00:00 I get the following error at submit:
invalid input syntax for type timestamp with time
zone: "(datetime.datetime(2007, 1, 1, 1, 0),)"
Here's the code:
forms.py: collection_datetime =
forms.SplitDateTimeField(widget=forms.SplitDateTimeWidget({'class':'vDateField'}))
html: {{ Form.as_table }}
and then back on my model object I'm doing:
lCollection.collection_datetime = pForm.cleaned_data['collection_datetime'],
I guess I've missing something somewhere. Can anyone point me in the right
direction?
Thanks,
Tim.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---