How to make Squid display local time

  

Squid's Error messages The default time shows the GMT time, not the local time, which sometimes looks awkward.
The following is a modification method, find Squid's source file src/errorpage.c about 60 lines,
{
ERR_SQUID_SIGNATURE,
"\ <BR clear=\\"all\\" ;>\ "
"<HR noshade size=\\"1px\\">\ "
"<ADDRESS>\ "
"Generated %T by %h (%s)\ "
"</ADDRESS>\ "
"</BODY></HTML>\ "
},
" "Generated %T by %h (%s)\ "” Amend to “ "Generated %t by %h (%s)\ "”
Name: Change %T to %t.
Of course, you can also change the prompt information to something else, but the meaning does not seem to be big. If you want to perfectly hide Squid's information, and look at the next decomposition.

Copyright © Windows knowledge All Rights Reserved