It depends on where you have installed squid.
The %T will be present in the error page templates which are not the css
ones, if you are using my RPMs then you will find them in the
sub-directories of /usr/share/squid/errors/.
If you will want to change them for all the files in the error pages you
will probably need to use some tiny sed + xargs + find script.
##Warning a very very non tested code\script sketch
##Don't run unless you understand it!!!
cd /usr/share/squid/errors && find -type f|xargs -l1 sed -e s/\%T/%t/g
##Don't run unless you understand it!!!
##END
All The Bests,
Eliezer
On 08/02/2016 19:00, sebastien.boulia...@cpu.ca wrote:
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:dwei...@dweimer.net]
*Envoyé :* 8 février 2016 11:28
*À :* Sebastien Boulianne <sebastien.boulia...@cpu.ca>
*Cc :* yvoi...@gmail.com; squid-users@lists.squid-cache.org
*Objet :* Re: [squid-users] How to change the timezone for Squid ?
On 2016-02-08 10:07 am, sebastien.boulia...@cpu.ca
<mailto:sebastien.boulia...@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-boun...@lists.squid-cache.org]
*De la part de* Yuri Voinov
*Envoyé :* 8 février 2016 11:05
*À :* squid-users@lists.squid-cache.org
<mailto:squid-users@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.boulia...@cpu.ca
<mailto:sebastien.boulia...@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@lists.squid-cache.org
<mailto:squid-users@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@lists.squid-cache.org
<mailto:squid-users@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/
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users