[squid-users] Wrong timestamp??

Yuri yvoinov at gmail.com
Wed May 24 19:19:09 UTC 2017


Just in case, I explain - Squid takes the system time in the client by
UTC. Since the client profile does not explicitly specify a local time
zone (which in, in my case, is GMT+6). So, you can easy calculate
difference.

This is OS-specific behaviour. Unrelated to squid. AFAIK.


25.05.2017 1:13, Yuri пишет:
> I've take a look on one of my servers:
>
> root @ khorne / # date
> Thu May 25 01:09:38 ALMT 2017
> root @ khorne / # su - squid
> squid @ khorne $ date
> Thu May 25 01:10:01 ALMT 2017
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Local TZ
>
> Is is ok. Either from root, or from non-privileged user.
>
> Well, let's run squidclient:
>
>  # su - squid
> squid @ khorne $ cd /usr/local/squid/bin
> squid @ khorne $ squidclient mgr:negotiateauthenticator
> HTTP/1.1 404 Not Found
> Server: squid
> Mime-Version: 1.0
> Date: Wed, 24 May 2017 19:11:01 GMT
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GMT
>
> (I have no authenticators, but date is correct.)
>
> Seems you have misconfigured server.
>
> 25.05.2017 0:49, erdosain9 пишет:
>> Hi to all.
>> This is strange...
>> if a put "date" i get the actual time. I mean the time it's correct.
>> More or less in this moment it is
>>
>> [root at squid ~]# date
>> mié may 24 15:59:59 ART 2017
>>
>> in the same moment (more or less) access.log
>> 24/May/2017:19:00:21     
>>
>> same moment (more or less)
>> [root at squid ~]# squidclient mgr:negotiateauthenticator
>> HTTP/1.1 200 OK
>> Server: squid/3.5.20
>> Mime-Version: 1.0
>> Date: Wed, 24 May 2017 19:01:37 GMT
>> Content-Type: text/plain;charset=utf-8
>> Expires: Wed, 24 May 2017 19:01:37 GMT
>> Last-Modified: Wed, 24 May 2017 19:01:37 GMT
>>
>> So... why squid have wrong time if the "date" command says another thing.
>> From where squid take the time?
>>
>>
>>
>> --
>> View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Wrong-timestamp-tp4682545.html
>> Sent from the Squid - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> squid-users mailing list
>> squid-users at lists.squid-cache.org
>> http://lists.squid-cache.org/listinfo/squid-users
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170525/c86581b9/attachment-0001.sig>


More information about the squid-users mailing list