Hi everyone,

How can I set the display date in the dashboard to European standard (dd/MM/yyyy) ?
(currently it's the US version M/d/yy)

Settings > System are set to:
Default locale: English (Belgium)
Time Zone: Europe/Brussels
Date and Time format: Advanced (with required settings)

My system locale are:
LANG=en_US.UTF-8
LC_NUMERIC=fr_BE.utf8
LC_TIME=en_GB.utf8
LC_MONETARY=fr_BE.utf8
LC_PAPER=fr_BE.utf8
LC_MEASUREMENT=fr_BE.utf8

I've probably missed something in the configuration (but if not, would it be possible to set dashboard to use either configured locale in osTicket or system locale ?).

Thanks!!

CMB

[EDIT] Forgot to mention that I'm running latest version 1.17.3

    I was happy to see a reply with some code that could have solved my issue, but this is actually what I have in my class.report.php.
    However comment, line 99, may suggest a future update: "# TODO: Handle user => db timezone offset"

    The lines that you point are used to sort and group by day, not for display.

    My best guess, reading quickly the code would be:
    line 119, $row_time = strtotime($row[1]);
    line 130, $times[] = $time = $row_time;
    reformat the date to store in array, but as it's stored as timestamp, I doubt that it'll work when it'll be used to effectively plot the graph.

    If we find where this array is used to plot the graph:
    line 139, return array("times" => $times, "plots" => $plots, "events" => $events);
    maybe then we could hardcode a different way to display the date.

    Best,
    CMB

    Write a Reply...