How to change the Date format in affiliates


I tried to setup the date format in affiliates but with no result...
How can i turn the english months in french or any other language ?


Best regards

  • Timothy
    • Chief Pigeon

    Hey there.

    I see the issue, they are defined in two JS files:

    /affiliate/affiliateincludes/js/jquery.flot.js Line 2550

    monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];


    I've flagged Paul (our awesome developer) he'll take a look with a view to release a fix.

    Take care.

  • Paul
    • The Green Incsub


    I decided to first post a beta for your to review. As there might be some things still needing translation. Attached please find the Affiliate Beta1

    @Timothy Bowers,

    Good catch on searching the .js files but that was not the issue. For the graphs for example the month+date string is create on the server via an AJAX call. The months in the JS are just for fallback.

    The real issue is the code was using the PHP function date() where it should be using the WordPress function date_i18n() which will handle the translation of the months.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.