Date is broken

Asked by markuhde

The date substitution in the clock doesn't work for me, either [DD/MM/YYYY] as suggested or [YYYY-MM-DD]. Both appear fine in the preview, but don't actually render in the client. This is with 1.7 RC1.

Question information

English Edit question
Xibo Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :

Do you not get anything at all in the client?

The CMS does the parsing and sends a substituted HTML file down to the client for display. You can find this file in the library (.htm extension) and see what made it down to the client - you can even open the file in IE directly and see if IE renders it.

Revision history for this message
markuhde (mark-markuhde) said :

Nothing at all in the client, it is just a blank space. Looks fine in the preview in Chrome. I'll check it out at work tonight.

Revision history for this message
markuhde (mark-markuhde) said :

This is the clock section of the layout from the library, it renders perfectly fine in Internet Explorer:

<!doctype html>
<html lang="en">
        <title>Xibo Open Source Digital Signage</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=302" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <!-- Copyright 2006-2014 Daniel Garner. Part of the Xibo Open Source Digital Signage Solution. Released under the AGPLv3 or later. -->
        <style type="text/css">
            body {
                margin: 0;
                overflow: hidden;
            h1, h2, h3, h4, p {
                margin-top: 0;
            .cycle-slide p, p.cycle-slide {
        <link href="fonts.css" rel="stylesheet" media="screen"><style type="text/css"></style>
    <style type='text/css'>body {background-image: url('C:/Users/jsignage/Documents/Xibo Library/backgrounds/1920x1080_34.jpg'); background-attachment:fixed; background-color:#823f4b; background-repeat: no-repeat; background-position: -1305px -194px; }</style></head>
    <!--[if lt IE 7 ]><body class="ie6"><![endif]-->
    <!--[if IE 7 ]><body class="ie7"><![endif]-->
    <!--[if IE 8 ]><body class="ie8"><![endif]-->
    <!--[if IE 9 ]><body class="ie9"><![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--><body><!--<![endif]-->
        <div id="content"><p><span style="font-size:48px;"><span style="font-family:arial,helvetica,sans-serif;"><span style="color:#000000;"><span class="clock" format="YYYY-MM-DD"></span></span></span></span></p>
    <script type="text/javascript" src="jquery-1.11.1.min.js"></script><script type="text/javascript" src="moment.js"></script><script type="text/javascript" src="xibo-layout-scaler.js"></script><script>

                    var options = {"previewWidth":0,"previewHeight":0,"originalWidth":"302.4","originalHeight":"100.8","scaleOverride":0}

                    function updateClock() {
                        $(".clock").each(function() {
                            $(this).html(moment().add(0, "m").format($(this).attr("format")));

                    $(document).ready(function() {
                        setInterval(updateClock, 1000);

Revision history for this message
Dan Garner (dangarner) said :

Can you help with this problem?

Provide an answer of your own, or ask markuhde for more information if necessary.

To post a message you must log in.