Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Redirect to correct detail calendar page

Roland Geider223e7bcdf0b4
diff --git a/wger/manager/templates/workout/timer.html b/wger/manager/templates/workout/timer.html
index 1802c463c..908993783 100644
--- a/wger/manager/templates/workout/timer.html
+++ b/wger/manager/templates/workout/timer.html
@@ -240,7 +240,7 @@ $(document).ready(function() {
// After clicking on the save button once, disable it
function( data ) {
var today = new Date();
- var date = '/' + today.getFullYear() + '/' + today.getMonth() + '/' + today.getDay();
+ var date = '/' + today.getFullYear() + '/' + (today.getMonth() + 1) + '/' + today.getDate();
window.location = '/' + get_current_language() + '/workout/calendar/' + get_username() + date;
$('#save_button_form').unbind("click");
$('#save_button_form').addClass('disabled');