For whom might be interested: just created the ticket and attached a
regression test case for details:
https://code.djangoproject.com/ticket/19371
Ion
On Tuesday, November 27, 2012 3:28:34 PM UTC+2, Aymeric Augustin wrote:
>
> 2012/11/27 Ion Scerbatiuc
>
>> Actually, to
2012/11/27 Ion Scerbatiuc
> Actually, to be realistic, it should contain strings representing naive
>> date times, because that's what will be POST-ed by a HTML form. But using a
>> datetime object works too.
>>
>
> I'm not 100% sure that the datetimes received in the POST
Hey,
Thanks for the quick response. You can see my comments in-line.
On Tuesday, November 27, 2012 3:12:39 PM UTC+2, Aymeric Augustin wrote:
> 2012/11/27 Ion Scerbatiuc
>
>> The datetimes in the POST are created using timezone.now() (and I have
>> USE_TZ = True)
>>
>
>
2012/11/27 Ion Scerbatiuc
> The datetimes in the POST are created using timezone.now() (and I have
> USE_TZ = True)
>
The POST data simulates the values entered by the user in the form. It
should contain naive datetimes in local time.
Actually, to be realistic, it should
Hello,
I wasn't sure how to tackle this so I decided to post here first.
I'm working on Django 1.4.2 now, and I encountered the following problem:
1. I have a model form with datetime fields
2. I run my tests and feed the form with POST data using RequestFactory
3. The datetimes in the