DM48E/MagicINFO Premium web widget time issue

  • 2 Replies
  • 131 Views

0 Members and 3 Guests are viewing this topic.

*

Offline revotechnik

  • Newbie
  • *
  • 8
  • 0
DM48E/MagicINFO Premium web widget time issue
« on: October 02, 2019, 12:10:56 PM »
I have a weird issue with Samsung DM48E (S3) and MagicINFO web widget. Display is connected to MagicINFO server (premium licence). My goal is to publish a website via web widget to Samsung DM48E. Website has an integrated clock (javascript). Problem is that website's integrated clock is displaying wrong time by -1 hour.

What i have checked:

*Server timezone and DST settings are correct.
*Display DST, time and date is correct.
*Website integrated clock is displaying correct time everywhere else.

*What i have noticed:
*If DM48E is not connected to server and configured as URL launcher then website is displaying correct time.
* From firewall logs It seems to be that display is pulling time somewhere over HTTP. Not over NTP or from system itself.

Javascript that is used on webpage:
--
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
h = h +1;
m = checkTime(m);
s = checkTime(s);
document.getElementById('kell').innerHTML =
h + ":" + m + ":" + s;
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
</script>

--

Please help!

DIGITAL SIGNAGE SUPPORT FORUM

DM48E/MagicINFO Premium web widget time issue
« on: October 02, 2019, 12:10:56 PM »

*

Offline EricL

  • Moderator
  • SuperHero & MegaGuru
  • *****
  • 294
  • 41
Re: DM48E/MagicINFO Premium web widget time issue
« Reply #1 on: October 03, 2019, 09:37:30 AM »
Can you try changing

h = h +1;

to

h = h +2;

*

Offline revotechnik

  • Newbie
  • *
  • 8
  • 0
Re: DM48E/MagicINFO Premium web widget time issue
« Reply #2 on: October 03, 2019, 11:32:47 AM »
Can you try changing

h = h +1;

to

h = h +2;

We are using this method as workaround right now but that's not a solution. With this method website's actual clock will be +1 hour and we can't use this on any other places.