aboutsummaryrefslogtreecommitdiff
path: root/timepollhead.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-12 21:40:27 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-12 21:40:27 +0100
commitcf344097561fa7c01c0380455ad4c31b4d064b8c (patch)
treebc7a30ee7b2d29bb9459cbb7502de627d35c7129 /timepollhead.rb
parentfaec9f8b2d58f73b77aed0fbc30ce3c8f9420e0e (diff)
bugfix: could not delete days with 1 digit
Diffstat (limited to 'timepollhead.rb')
-rw-r--r--timepollhead.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/timepollhead.rb b/timepollhead.rb
index 3c7aa6c..8429d01 100644
--- a/timepollhead.rb
+++ b/timepollhead.rb
@@ -259,7 +259,7 @@ END
<form method='post' action=''>
<div>
<input class='#{klasse}' type='submit' value='#{d.day}' />
- <input type='hidden' name='#{varname}' value='#{startdate.strftime("%Y-%m")}-#{d.day}' />
+ <input type='hidden' name='#{varname}' value='#{startdate.strftime("%Y-%m")}-#{d.day.to_s.rjust(2,"0")}' />
<input type='hidden' name='add_remove_column_month' value='#{startdate.strftime("%Y-%m")}' />
<input type='hidden' name='undo_revision' value='#{revision}' />
</div>