fix negative timeshift
This commit is contained in:
parent
60086dac8d
commit
6618d2fef2
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ public class Profile {
|
||||||
|
|
||||||
Integer getShitfTimeSecs(Integer originalTime) {
|
Integer getShitfTimeSecs(Integer originalTime) {
|
||||||
Integer shiftedTime = originalTime + timeshift * 60 * 60;
|
Integer shiftedTime = originalTime + timeshift * 60 * 60;
|
||||||
shiftedTime = shiftedTime % (24 * 60 * 60);
|
shiftedTime = (shiftedTime + 24 * 60 * 60) % (24 * 60 * 60);
|
||||||
if (timeshift != 0)
|
if (timeshift != 0)
|
||||||
log.debug("(Sec) Original time: " + originalTime + " ShiftedTime: " + shiftedTime);
|
log.debug("(Sec) Original time: " + originalTime + " ShiftedTime: " + shiftedTime);
|
||||||
return shiftedTime;
|
return shiftedTime;
|
||||||
|
|
Loading…
Reference in a new issue