{#
Displays a datetime that can be converted to a users timezone using JavaScript.
In the data-datetime attribute, the date is rendered in ISO 8601 format.

datetime_obj   - the datetime object to display

Example:

    {% snippet 'snippets/local_friendly_datetime.html', datetime_obj=pkg_dict.metadata_created %}

#}
<span class="automatic-local-datetime" data-datetime="{{ h.render_datetime(datetime_obj, date_format='%Y-%m-%dT%H:%M:%S%z') }}">
    {{ h.render_datetime(datetime_obj, with_hours=True) }}
</span>
