Karen Tracey wrote: > On Thu, Nov 6, 2008 at 11:30 AM, Benedict Verheyen > <[EMAIL PROTECTED] <mailto:[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' > TIME_FORMAT = 'H:i' > YEAR_MONTH_FORMAT = 'm Y' > MONTH_DAY_FORMAT = 'd m' > > However, any date i enter in the admin section is displayed as Y-m-d. > I thought these settings would adjust the way dates are displayed but it > doesn't seem so. > What is the purpose of these settings? > > Possibly they are being over-ridden by the translation you are using -- see: > > http://code.djangoproject.com/ticket/2203 > > Karen
Karen, thanks for the info. However, i don't use any translations. I do have USE_I18N = True but changing it to False doesn't change a thing so the issue remains. The bug report you mentioned is already 2 years old and it's isn't clear if this is a bug or not although it does seem like a bug to me and quite an annoying one if you're using another date format. I can manage by using the date tag in templates and always converting the dates in my views but one would think the settings would be there to handle this kind of things. Is there a way to define the date format globally or convert it globally? That would also help. Regards, Benedict --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

