Hi,
within our working Team we got a new Brightsign Box (XD234). Now I have to integrate four time zones into the presentation.
I found out, that I have to do this with HTML5. I also never worked with this.
Could someone help?
Hi,
within our working Team we got a new Brightsign Box (XD234). Now I have to integrate four time zones into the presentation.
I found out, that I have to do this with HTML5. I also never worked with this.
Could someone help?
Acalleja, Thank you. I was able to get to this:
--- Clock.html
Change:
.innerText = "PST " + hour
to
.innerText = "PST\r\n" + hour
And see if that works.
Hi John @JRBtechnical, I'm using your html/js code for four clocks in different time zones. I have changed it around so that the clocks are displayed horizontally but the dates/times seem to be not current. They show 'Jan 2000' any idea why this is and how to fix it?
Zedekiah - the time that code uses is the internal system time of the BrightSign player. If the the home clock is not correct (and the corresponding times zones also not correct), then most likely the internal clock on the player needs to be set to the current date, time, and timezone for your location.
This should solve the issue.
Good morning John, thanks for the quick reply!
I tried changing the device timezone both in 'New Device Setup' and using the Brightsign Config Generator to generate a 'settings.json' file to put on the root folder of the SD card. Neither attempts worked. In fact, now it says 1999 for the date.
Also I was wondering, I was able to change tulsa time to Hawaii time but I also need Japan, Guam, and Zulu. Any idea how to do those? Like what names do I put. I was able to do hawaii by changing America/Tulsa to America/Hawaii.
Sorry, I am not sure why you are having problems with the clock in the BrightSign player. Unfortunately this is not an easy thing to try and diagnose as to why the internal clock is not correct in this forum.
As for changing the Time Zones, you need to change each of the four in 2 places (example America/Tulsa); one for the Date, and one for the Time, and then also change the City Text description later in the HTML (example Tulsa).
I do not think America/Hawaii is a valid time zone in the TZ Database, so I listed the correct one below:
Hawaii = Pacific/Honolulu
Japan = Asia/Tokyo
Guam = Pacific/Guam
Zulu - UTC
For others looking, here is the list of Time Zones:
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Please use Time Zones with Canonical Status in the list.
Alias and Deprecated Status Time Zones may not work or behave properly.
Also if any countries have changed Time Zones recently, or change Time Zones at some time in the future (if the US gets rid of Daylight Saving Time for example), people may need to get an updated Moment Timezone file at some time in the future.
You can download up to date versions here:
https://momentjs.com/timezone/
In most cases the Data 10 Year Range file will be fine, so you would replace...
moment-timezone-with-data-2012-2022.min.js
with the newer...
moment-timezone-with-data-10-year-range.min.js
Hello I am Trying to create something similar using LG Ultra Strech Displays 3840x600 with 8 Time Zones
Hawaii, Alaska, Pacific, Mountain, Central, Eastern, Atlantic, Zulu
Would someone be able to help me with this?