unlocalize template filter not consistent with "localize off" for datetimes

2017-08-28 Thread Beda Kosata
Hello, according to the documentation, using {% localize off %} should be equivalent to {{ variable|unlocalize }}. However, for datetimes the former formats the variable according to DATETIME_FORMAT setting, while the latter does not and uses some default ISO based formatting. I observe this f

Re: unlocalize template filter not consistent with "localize off" for datetimes

2017-08-28 Thread Claude Paroz
Yes the issue seems legitimate. Please open a report. https://code.djangoproject.com/newticket Claude Le 28. 08. 17 à 19:26, Beda Kosata a écrit : Hello, according to the documentation, using {% localize off %} should be equivalent to {{ variable|unlocalize }}. However, for datetimes the for