Localized date strftime in Django view

Viewed 12045

I would like to send localized date in JSON from django view

Normal text translation via

ugettext

is OK

Following code in view has no effect:

translation.activate("ru")
print datetime.now().strtime("%B")

Output is "August", instead of "Август"

I read about python's "locale" module, but it's named as thread unsafe

How to force strftime to use django's locale?

1 Answers
Related