Change OPML export filename to use ISO date format

This allows one to have multiple export files that will then sort correctly on the filesystem.
This commit is contained in:
Matthew Daniel 2012-03-29 23:06:23 +03:00
parent ae0cf0f99e
commit 99512d8ebf

View file

@ -54,7 +54,7 @@ def opml_export(request):
response = HttpResponse(opml, mimetype='text/xml')
response['Content-Disposition'] = 'attachment; filename=NewsBlur Subscriptions - %s' % (
now.strftime('%d %B %Y')
now.strftime('%Y-%m-%d')
)
return response