Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 1 made on Tuesday July 1, 2014 at 03:12
Fbrighi
Long Time Member
Joined:
Posts:
September 2010
52
Hello all,

I have a curious case to ask you for.
I have my TS9600 programmed with proper made java script program, so it is able to calculate the estimated time of a movie to finish. In practice, it takes the remaining time value from an Oppo player (by rs232), and it adds the seconds value to the actual time. Script is this :

//Calcoli & orari di credits, fine e intervallo
var OraFine = new Date();
var OraCredits = new Date();
var OraIntervallo = new Date();
if ((Intervallo == false) && (CalculateSeconds(offsetintervallo) > 0)) {
OraFine.setSeconds(CalculateSeconds(remaining) + breaklenght);
OraCredits.setSeconds(CalculateSeconds(offsetcredits) - CalculateSeconds(elapsed) + breaklenght);
} else {
OraFine.setSeconds(CalculateSeconds(remaining));
OraCredits.setSeconds(CalculateSeconds(offsetcredits) - CalculateSeconds(elapsed));
}
OraIntervallo.setSeconds(CalculateSeconds(offsetintervallo) - CalculateSeconds(elapsed));
percent = parseInt(100*(CalculateSeconds(elapsed)/(CalculateSeconds(remaining) + CalculateSeconds(elapsed))));

Until some month ago all worked fine. Yesterday, for first time, i noted that the "calculated hours" (OraFine, OraCredits & OraIntervallo) values are +1h respect to what they should be. Example : if present time is 16.00, remaining time is 1h, instead of showing 17.00 as end time, it shows 18.00.

What can be the reason? I checked date & time settings and they are ok, i was thinking some issue related to "legal time"...but found no options to set up on my pronto...and anyway present hour is correctly set up.

Any idea about what can be the issue? This same program worked fine until few weeks ago...

Thanks and Best regards,

FKB
FKB


Hosting Services by ipHouse