Re: date formats in settings.py

2008-11-07 Thread Benedict Verheyen
Benedict Verheyen wrote: I have solved it in my view. However, i'm not sure this is the best way to deal with it. In my view i set the input_formats of the datefield like this: report_f = ReportForm(request.POST,instance=r) report_f.base_fields['date_reported'].input_formats = ('%d/%m/%Y',) To

Re: date formats in settings.py

2008-11-06 Thread Benedict Verheyen
Karen Tracey wrote: > On Thu, Nov 6, 2008 at 11:30 AM, Benedict Verheyen > <[EMAIL PROTECTED] > wrote: > > > Hi, > > i have a question on the different date/time settings one can specify in > the settings.py. > I currently have these: > TIME_ZONE =

date formats in settings.py

2008-11-06 Thread Benedict Verheyen
Hi, i have a question on the different date/time settings one can specify in the settings.py. I currently have these: TIME_ZONE = 'Europe/Brussels' DATE_FORMAT = 'd/m/Y' DATETIME_FORMAT = 'd/m/Y H:i' TIME_FORMAT = 'H:i' YEAR_MONTH_FORMAT = 'm Y' MONTH_DAY_FORMAT = 'd m' However, any date i ente

Re: date formats in settings.py

2008-11-06 Thread Karen Tracey
On Thu, Nov 6, 2008 at 11:30 AM, Benedict Verheyen < [EMAIL PROTECTED]> wrote: > > Hi, > > i have a question on the different date/time settings one can specify in > the settings.py. > I currently have these: > TIME_ZONE = 'Europe/Brussels' > DATE_FORMAT = 'd/m/Y' > DATETIME_FORMAT = 'd/m/Y H:i'