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?
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.
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.
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".
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.
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
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?
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
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.
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.
is working on a reply...