In the documentation for themes, you mention formatting datetime like this:
{% if media.exif.datetime %}
{{ media.exif.datetime.strftime('%A, %d. %B %Y') }}
{% endif %}
However, media.exif.datetime does not appear to be a Python datetime object. When I attempt this in the colorbox index.html, I get the following error
File "/media/cams/themes/colorbox/templates/index.html", line 44, in template
data-date=", {{ media.exif.datetime.strftime('%c') }}"
jinja2.exceptions.UndefinedError: 'unicode object' has no attribute 'strftime'
Am I missing something?
Thank you.
In the documentation for themes, you mention formatting datetime like this:
{% if media.exif.datetime %}{{ media.exif.datetime.strftime('%A, %d. %B %Y') }}{% endif %}However, media.exif.datetime does not appear to be a Python datetime object. When I attempt this in the colorbox index.html, I get the following error
File "/media/cams/themes/colorbox/templates/index.html", line 44, in templatedata-date=", {{ media.exif.datetime.strftime('%c') }}"jinja2.exceptions.UndefinedError: 'unicode object' has no attribute 'strftime'Am I missing something?
Thank you.