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/5dd24233e9420253f6646fb6c904a3d27c31065e?ds=inline;hp=--cc pdcounter fix, librarian bump --- 5dd24233e9420253f6646fb6c904a3d27c31065e diff --git a/lib/librarian b/lib/librarian index dd7a7591a..5329a22cd 160000 --- a/lib/librarian +++ b/lib/librarian @@ -1 +1 @@ -Subproject commit dd7a7591ae946e6526f7555672517563c994b3ee +Subproject commit 5329a22cd6643da657dd24546b382ada9e048b68 diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 6c890b9ea..186f4b69f 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});