Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Dates on Dashboard Chart are Wrong in IE

When I access the dashboard from IE, I see '15860' instead of what I see in Chrome: '06/03/2013'.

Is there anything I can do to fix this?

Comments

  • You're talking about /scp/dashboard.php?

    I do not see that behavior when I load the page in IE. I'm running IE 10.0.9200.16635 update version 10.0.7 (KB2846071).
  • ntozier;41477 said:
    You're talking about /scp/dashboard.php?

    I do not see that behavior when I load the page in IE. I'm running IE 10.0.9200.16635 update version 10.0.7 (KB2846071).
    Thanks for your response ntozier:

    I have the problem in IE7 and IE8.

    It's not a probem in IE9. And I haven't been able to try it from IE10.
  • I highly doubt that the devs are going to spend the time to fix a problem that's only in IE 7 and IE 8 due to the age of those versions (ie 8 was released in 2008). Especially since ie8 only makes up about 6% of all IE usage, and ie7 is less than a percent.
  • ntozier;41583 said:
    I highly doubt that the devs are going to spend the time to fix a problem that's only in IE 7 and IE 8 due to the age of those versions (ie 8 was released in 2008). Especially since ie8 only makes up about 6% of all IE usage, and ie7 is less than a percent.
    I understand. I'll see if it's anything I can try and fix. In the government, we're seeing IE8 as the major browser. (blah)
  • Raphael (which is the Javascript library used for the graphing) creates VML markup (with rvml: tags) in IE 8 instead of SVG markup; so the script needs to handle that situation as well. You could try the fix described below. It should also work in lower versions of IE.

    In scp/js/dashboard.inc.js...

    Look for the bit of code below:
                    // Change axis labels from Unix epoch
                    $('tspan', $('#line-chart-here')).each(function(e) {
                        var text = this.firstChild.textContent;
                        if (parseInt(text) > 10000)
                            this.firstChild.textContent =
                                $.datepicker.formatDate('mm-dd-yy',
                                new Date(parseInt(text) * 86400000));
                    });  

    And the code below right after it:
     
                    // VML version for IE 8 and lower
                    $('textpath', $('#line-chart-here')).each(function(e) {
       var text = this.string;
                        if (parseInt(text) > 10000)
                            this.string =
                                $.datepicker.formatDate('mm-dd-yy',
                                new Date(parseInt(text) * 86400000));
                    }); 
  • That should be "Add the code below right after it:"...sorry
Sign In or Register to comment.