From a567c6b20b6982c0dc3f87b334d1dbe9233001a3 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 29 Dec 2010 17:10:26 +0100 Subject: [PATCH] pdcounter fix, librarian bump --- wolnelektury/settings.py | 2 +- wolnelektury/templates/pdcounter/pd_counter.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 85d3d2f36..3c3bd4840 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -30,7 +30,7 @@ DATABASES = { # although not all choices may be available on all operating systems. # If running in a Windows environment this must be set to the same as your # system time zone. -TIME_ZONE = 'Europe/Warsaw Poland' +TIME_ZONE = 'Europe/Warsaw' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html diff --git a/wolnelektury/templates/pdcounter/pd_counter.html b/wolnelektury/templates/pdcounter/pd_counter.html index af744aecf..fd157ad55 100644 --- a/wolnelektury/templates/pdcounter/pd_counter.html +++ b/wolnelektury/templates/pdcounter/pd_counter.html @@ -5,6 +5,8 @@ {% else %} $.countdown.setDefaults($.countdown.regional['']); {% endif %} -d = new Date({{ pd_counter }}, 1, 1); -$('#countdown').countdown({until: d, format: 'ydHMS', serverSync: serverTime}); +d = new Date({{ pd_counter }}, 0, 1); +function re() {location.reload()}; +$('#countdown').countdown({until: d, format: 'ydHMS', serverSync: serverTime, +onExpiry: re, alwaysExpire: true}); -- 2.20.1