Merge branch 'master' into funding
[wolnelektury.git] / apps / pdcounter / templates / pdcounter / book_stub_detail.html
index 40ddbd8..640d68e 100644 (file)
@@ -1,5 +1,6 @@
 {% extends "base.html" %}
 {% load i18n %}
+{% load time_tags %}
 
 {% block titleextra %}{{ book.title }}{% endblock %}
 
@@ -17,7 +18,7 @@
        {% else %}
            {% if book.pd %}
                        <p>{% trans "This work will become part of public domain and will be allowed to be published without restrictions in" %}</p>
-            <div id='countdown' data-year='{{ pd_counter }}'></div>
+            <div class='countdown' data-until='{{ pd_counter|date_to_utc|utc_for_js }}'></div>
                        <p>{% trans "<a href='http://domenapubliczna.org/co-to-jest-domena-publiczna/'>Find out</a> why Internet libraries can't publish this work." %}</p>
                {% else %}
                    <p>{% trans "This work is copyrighted." %}