Hello, I am trying to set a time in the titlebar and logo. I got it with this tutorial in this page
But when conect in browser tv samsung, the clock gets wrong. Gets 01/31/1969 23:45 for example. Othe devices its very good, for example, pc or raspian. How could i modify this code to get the time directly from my raspian, not local clock.
Does the clock advance as it should, even though it is showing the wrong time?
Edit
Since a time of zero in javascript is 00:00 1st January 1970 UTC that suggests that the browser starts with a time of zero (which might be 23:00 in your time zone for example).
Hello my friends, thanks for your answers. See, the times on my TV's menus are correct. For other devices the time is also correct. But on Samsung TV, start UTC with time zero (00:00 1970). It is possible to make a javascript code that obtains the same time as the raspbarry as it obtains the logo (IP raspian 192.168.0.60). How do you get the server time, in this case the raspbarry?