Skip to content

Commit

Permalink
fix: Add time shift instead of substracting
Browse files Browse the repository at this point in the history
  • Loading branch information
raitisbe committed Jun 19, 2022
1 parent 713e570 commit 56bb8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/test-statistics-app/src/lib/statistics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class HsStatisticsService {
* @returns
*/
shiftTime(variable: string, time: string, variableShifts: ShiftBy) {
return parseInt(time) - (variableShifts[variable] ?? 0);
return parseInt(time) + (variableShifts[variable] ?? 0);
}

async clear(app: string): Promise<void> {
Expand Down

0 comments on commit 56bb8f1

Please sign in to comment.