diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-29 16:55:21 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-29 16:55:21 +0100 |
commit | a7c44d8dce7d6e9dcee0bf63ad22608886f413c6 (patch) | |
tree | 952c29bc9ef869fb6e053b595a1b09b494be3af0 | |
parent | 8ca71f66cd37bac2456ac2b2faec3572c103b574 (diff) |
fixed strange hour sum
-rw-r--r-- | includes/pages/user_myshifts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 8f6e4d56..0bf077cc 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -95,7 +95,7 @@ function user_myshifts() { $shift_entries[] = $user_source['Nick']; } $html .= join(", ", $shift_entries); - $timesum += ($shift['end'] - $shift['start']) / (60*60); + $timesum += $shift['end'] - $shift['start']; } $html .= '</td>'; @@ -114,7 +114,7 @@ function user_myshifts() { return msg().template_render('../templates/user_myshifts.html', array ( 'intro' => sprintf(Get_Text('pub_myshifts_intro'), $LETZTES_AUSTRAGEN), 'shifts' => $html, - 'time_sum' => $timesum, + 'time_sum' => round($timesum / (60*60), 1), 'msg' => $msg, 'ical_text' => sprintf(Get_Text('inc_schicht_ical_text'), page_link_to_absolute('ical') . '&key=' . $shifts_user['ical_key'], |