Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • JDCuster 27 posts 159 karma points
    Jan 02, 2017 @ 22:06
    JDCuster
    0

    Date Format

    My user account is configured as EN_US, but I'm seeing the DD-MM-YYYY date format in the analytics presented instead of the US date format of MM-DD-YYYY. Any ideas why that would be happening?

    Additionally, I made some edits to the language files in the project's config/lang/ folder but they had no effect on the Analytics package regardless of how many times I ran a build. Is that normal?

    If this helps, I installed the package via Nuget.

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Jan 03, 2017 @ 08:50
    Warren Buckley
    0

    Hello Truis,
    It has been a while since I have looked at the codebase.

    I would imagine the date format is coming directly from the API from Google Analytics. So I would check your settings/language on Google.

    If you update the keys you would need to restart the site/app pool for them to take place normally.

    Thanks,
    Warren

  • JDCuster 27 posts 159 karma points
    Jan 04, 2017 @ 23:10
    JDCuster
    0

    Hi Warren,

    The Google Analytics account is displaying all dates in EN-US format so it must be happening somewhere in the package. I've also restarted the site numerous times and any changes the language XMLS files do not appear.

    Perhaps its a compatibility issue with 7.5.6?

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Jan 05, 2017 @ 08:20
    Warren Buckley
    0

    I have not had a chance to look at this codebase for a while. The code is over on GitHub and I would recommend taking a look through it to see if you can spot the bug/problem in the code.

    Thanks,
    Warren

  • JDCuster 27 posts 159 karma points
    Jan 14, 2017 @ 13:33
    JDCuster
    100

    Hi Warren,

    I took a stroll through the source and found the offending code on line 68.

    https://github.com/warrenbuckley/Analytics/blob/develop/Analytics/ChartHelper.cs#L68

    When I have some free time I'll work on reading the current users lang and then formatting that line accordingly. I'll submit a PR if all goes well.

  • JDCuster 27 posts 159 karma points
    Jan 14, 2017 @ 13:43
    JDCuster
    0

    Also, should anyone stumble onto this thread with the language file question I had - it turns out the xml files in "\App_Plugins\Analytics\config\lang" are not used - they have been merged into the Umbraco lang files found at "\Umbraco\Config\Lang".

    Updates made there will reflect in the package.

Please Sign in or register to post replies

Write your reply to:

Draft