From: Radek Czajka Date: Wed, 29 Dec 2010 16:10:26 +0000 (+0100) Subject: pdcounter fix, librarian bump X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/a567c6b20b6982c0dc3f87b334d1dbe9233001a3?hp=-c pdcounter fix, librarian bump --- a567c6b20b6982c0dc3f87b334d1dbe9233001a3 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});