RE: [squid-users] time error squid
On 03.04.2012 04:19, Jose R. Cristo Almaguer wrote: Amos, sorry for any inconvenience and thanks for your time, the problem is also in the squid logs, first how I switch on the template?. To fix the time in the logs I have to modify the LogFormat of squid but I tried all the possibilities and does not change, which I recommend.? Please stop thinking of this as a fix. It is not, what you are doing is _breaking_ things in order to get a little bit of temporary comfort. To change the logs you need to write your own log format to display local time instead of the transactions UTC time (http://www.squid-cache.org/Doc/config/logformat/). Be aware this breaks almost all log processing and analysis tools, as well as causing the logs to display time-travel behaviour when leap-seconds/minutes/hours/days or daylight savings changes happen. Amos
RE: [squid-users] time error squid
Hi Amos, look, right now the time in my server is dom abr 1 10:35:12 CDT 2012 and de hwclock is dom 01 abr 2012 10:35:59 CDT, now I fail the authentication to see the error page and look this Generated Sun, 01 Apr 2012 14:36:58 GMT by server (squid/3.1.19) look at the time of the error?, any ideas? -Mensaje original- De: Amos Jeffries [mailto:squ...@treenet.co.nz] Enviado el: sábado, 31 de marzo de 2012 21:01 Para: squid-users@squid-cache.org Asunto: Re: [squid-users] time error squid On 1/04/2012 1:31 a.m., Jose R. Cristo Almaguer wrote: how to do that, first figured it was that was taking the time to hwclock, then change the time and remains the same, all logs have bad time and I dont know to put the correct time. Greetings joSE; Squid uses the system time() and strftime() API calls to locate UTC/GMT time details. If the values presented there are wrong your system kernel is broken somehow. NP: the times logged by Squid is *completion* time for each request. Not start time. -Mensaje original- De: Amos Jeffries On 31/03/2012 8:05 p.m., Jose R. Cristo Almaguer wrote: Hello, I use squid 3.1.19, everything works fine, but I have problems with the time in the squid error page gives me a time that is not the system or BIOS, any ideas? The error pages are supposed to be UTC. Unless you changed them to be local timezone or something strange. Amos -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio. For all your IT requirements visit: http://www.transtec.co.uk -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio. For all your IT requirements visit: http://www.transtec.co.uk
RE: [squid-users] time error squid
On 02.04.2012 03:47, Jose R. Cristo Almaguer wrote: Hi Amos, look, right now the time in my server is dom abr 1 10:35:12 CDT 2012 and de hwclock is dom 01 abr 2012 10:35:59 CDT, now I fail the authentication to see the error page and look this Generated Sun, 01 Apr 2012 14:36:58 GMT by server (squid/3.1.19) look at the time of the error?, any ideas? Notice the CDT versus GMT timezone labels. This page explains what they are and how they work. http://timeanddate.com/time/time-zones.html Basically, CDT is your local Cuban daylight savings time, where the server is. Add 4 hours and that is the UTC/GMT timezone the Internet is coordinated with. We emit GMT in the error pages so it is easier to correlate them as reported by users with the logged UTC/GMT timestamp, and to avoid complaints about server information leakages. You can change the template %T to %t if you really want the servers local timezone to be revealed to any visitors. Amos
Re: [squid-users] time error squid
On 31/03/2012 8:05 p.m., Jose R. Cristo Almaguer wrote: Hello, I use squid 3.1.19, everything works fine, but I have problems with the time in the squid error page gives me a time that is not the system or BIOS, any ideas? The error pages are supposed to be UTC. Unless you changed them to be local timezone or something strange. Amos
RE: [squid-users] time error squid
how to do that, first figured it was that was taking the time to hwclock, then change the time and remains the same, all logs have bad time and I dont know to put the correct time. Greetings joSE; -Mensaje original- De: Amos Jeffries [mailto:squ...@treenet.co.nz] Enviado el: sábado, 31 de marzo de 2012 3:22 Para: squid-users@squid-cache.org Asunto: Re: [squid-users] time error squid On 31/03/2012 8:05 p.m., Jose R. Cristo Almaguer wrote: Hello, I use squid 3.1.19, everything works fine, but I have problems with the time in the squid error page gives me a time that is not the system or BIOS, any ideas? The error pages are supposed to be UTC. Unless you changed them to be local timezone or something strange. Amos -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio. For all your IT requirements visit: http://www.transtec.co.uk -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio. For all your IT requirements visit: http://www.transtec.co.uk
Re: [squid-users] time error squid
On 1/04/2012 1:31 a.m., Jose R. Cristo Almaguer wrote: how to do that, first figured it was that was taking the time to hwclock, then change the time and remains the same, all logs have bad time and I don’t know to put the correct time. Greetings joSE; Squid uses the system time() and strftime() API calls to locate UTC/GMT time details. If the values presented there are wrong your system kernel is broken somehow. NP: the times logged by Squid is *completion* time for each request. Not start time. -Mensaje original- De: Amos Jeffries On 31/03/2012 8:05 p.m., Jose R. Cristo Almaguer wrote: Hello, I use squid 3.1.19, everything works fine, but I have problems with the time in the squid error page gives me a time that is not the system or BIOS, any ideas? The error pages are supposed to be UTC. Unless you changed them to be local timezone or something strange. Amos