Initially just browser access. Or better still if you can show us a Spring Signage demo doing this then we have access to the complete system to track it down.
RE: Clock Customization Token Documentation
My spring signage demo named demo-test replicates the problem exactly. Under my Spring Signage account, there is a single cloud xibo instance with a brand new demo layout (“Date Token Testing”) with a single region that demonstrates the problem as described. The user can not specify any custom tokens as described in the Documentation without Chinese/Korean characters showing.
Region changed to en_US / Time Zone to New York.
[Clock|HH:mm] - Works
[Clock|MM/DD/YYYY] - Works
[Clock|dddd Do MMMM YYYY] - Fails Miserably…
Thank you very much - i’ve finally understood the problem!
Its nothing to do with the “clock” module, its the “text” module with the clock substitutions and is a bug.
https://github.com/xibosignage/xibo-cms/blob/develop/modules/text.module.php#L516
This line needs to be enhanced like:
$javaScriptContent .= ' updateClock(); setInterval(updateClock, 1000); moment.locale("' . TranslationEngine::GetJsLocale() . '"); ';
Thanks, Dan! Will put this fix in production this weekend. Feel free to close this problem.
I believe I had this same issue. If I recall, when I used the lower case “am/pm” in my string, it caused it to be in Chinese but if I used the uppercase version, it worked fine.
Brandon