darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
126 stars 36 forks source link

Wrong date in generated report #103

Closed Razerlikes closed 9 years ago

Razerlikes commented 9 years ago

Hello,

in my generated reports the calendar shows the wrong weekdays for the dates. 2015-09-28_16-59-55

My locale is de_DE and language is de_DE. The time on the server is correct. "Date: Mon Sep 28 16:57:07 2015"

I use the latest Git-Clone.

Greetings Razerlikes

darold commented 9 years ago

Hi,

What is wrong with the week number? I don't know the equivalent for deutch calendar but here you can see the current week number for french http://www.calendrier-365.fr/numero-de-semaine.html

Also:

~$ export LANG=de_DE
~$ ncal -w
    September 2015    
Mo     7 14 21 28   
Di  1  8 15 22 29   
Mi  2  9 16 23 30   
Do  3 10 17 24      
Fr  4 11 18 25      
Sa  5 12 19 26      
So  6 13 20 27      
    36 37 38 39 40 

seems to return the same.

Regards,

Razerlikes commented 9 years ago

This calendar says that today (28th) is tuesday (Di) not Monday (Mo)

darold commented 9 years ago

Oh ok, thank you for the precision.

darold commented 9 years ago

week40

Here what I have using latest code from github. Have you updated the CSS and javascript too? Your screenshot looks to very old release.

Razerlikes commented 9 years ago

Sorry for the late answer. I updated the CSS and Javascript files, but it still shows that the 28th of september is a Tuesday (Di)

darold commented 9 years ago

Please update the german translation file from github. I've change the order of WeekDay to So Mo Di Mi Do Fr Sa, the week days translation must start with Sunday.

Best regards