[squid-users] How to change the timezone for Squid ?

Sebastien.Boulianne at cpu.ca Sebastien.Boulianne at cpu.ca
Mon Feb 8 17:00:30 UTC 2016


Hi,

I thought I could do it in squid.conf.
Do I need to modifiy each error one by one ?
I looked in errorpages.css and errorpages.css.default and I didn’t find a « %T ».

Thanks for your answer.

Sébastien

De : dweimer [mailto:dweimer at dweimer.net]
Envoyé : 8 février 2016 11:28
À : Sebastien Boulianne <Sebastien.Boulianne at cpu.ca>
Cc : yvoinov at gmail.com; squid-users at lists.squid-cache.org
Objet : Re: [squid-users] How to change the timezone for Squid ?


On 2016-02-08 10:07 am, Sebastien.Boulianne at cpu.ca<mailto:Sebastien.Boulianne at cpu.ca> wrote:
Hi Yuri,

Thanks for your support.
I use Squid on a Oracle Linux 7.

date
Mon Feb  8 09:51:27 EST 2016

My timezone look ok with the date command.

Sébastien



De : squid-users [mailto:squid-users-bounces at lists.squid-cache.org] De la part de Yuri Voinov
Envoyé : 8 février 2016 11:05
À : squid-users at lists.squid-cache.org<mailto:squid-users at lists.squid-cache.org>
Objet : Re: [squid-users] How to change the timezone for Squid ?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I suggest this is not squid issue, but your OS's TZ settings.....

08.02.16 22:03, Sebastien.Boulianne at cpu.ca<mailto:Sebastien.Boulianne at cpu.ca> пишет:
>


      > Hi all,


      >


      >


      >


      > When a user reach an error page, he got that :


      >


      > CacheHost: squid.cpu.ca


      > ErrPage: ERR_CONNECT_FAIL


      > Err: (110) Connection timed out


      > _TimeStamp: Fri, 05 Feb 2016 22:54:08 GMT


      > _ClientIP: xxx.xxx.xxx.xx


      >


      > The problem is; I am from qc.ca so the timezone should be
      GMT-5.


      >


      > How can I set the timezone in squid.conf ? Is it a way ?


      >


      >


      >


      > Thanks you very much in advance.


      >


      >


      >


      > Sébastien


      >


      >


      >


      > _______________________________________________


      > squid-users mailing list


      > squid-users at lists.squid-cache.org<mailto:squid-users at lists.squid-cache.org>


      > http://lists.squid-cache.org/listinfo/squid-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWuLykAAoJENNXIZxhPexGu5QH/2UZZgFhS5eT2ygAp2GvVr4Q
kA0dAWHNWVSvvvcAfJ24gu9K6+5zuP6+0SxZqqY5kL+zWTDFZZPz2URYc+Xa3yoC
92+ElGBrJX9wvkcdciVkir6CGk3x+BS6Ft12aFEtrI398K+Fw15c60r3x+a++N6I
8EtoKxGFH5GC3AmQAyJIpmLBf+wX+6Le8uYqlOGpSbNDyJHziAA0FFAiSCL3s7Q3
ejVIf9KM1+QaA+rKoU6qUPutOX0AfkGiVd4l98qgI5GWj7lvkW2Io9j0GpqFkrlu
VAXu3CsgL3V67gVMKXgv2/yzNysUyleUVcQcQJnuqH2KRGuAR2TIvPKy2TPrVFY=
=1nfG
-----END PGP SIGNATURE-----

_______________________________________________
squid-users mailing list
squid-users at lists.squid-cache.org<mailto:squid-users at lists.squid-cache.org>
http://lists.squid-cache.org/listinfo/squid-users



It believe that it requires modifying the variable form %T to %t in the error pages.

See here for more information on customizing the errors.

<http://wiki.squid-cache.org/Features/CustomErrors>
--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160208/8f8b1435/attachment.html>


More information about the squid-users mailing list