At 08:50 PM 4/8/99 +0800, Joel Taqueban wrote:
>
> Thanks for the reply, I have already edited the error message but still
could
> not work on the Squid time. You said I should use the correct time zone to
> display the correct local time. What command should I issue from my
(linux)
> shell prompt to get the correct time zone? (Sorry, I'm also a newbie to
> Linux but is beginning to love it).
This is wrong indeed. If you go to the zoneinfo dir you'll find a lot of
files.
Each defines a timezone. You should do 2 things: 1) copy the correct
timezone-file to localtime. 2) Edit/create the /etc/timezone file. My file has
Europe/Amsterdam (Which makes sense if I'm in The Netherlands)
Marc
>
> I tried from prompt
>
> # /usr/lib/zoneinfo/localtime
>
> instead it gave me an error message "localtime: command not found"
>
> tried even
>
> # sh /usr/lib/zoneinfo/localtime
>
> but had a message "localtime: cannot execute binary file"
>
> What's wrong with my commands? File is there however. It is:
>
> lrwxrwxrwx 1 root root 22 Feb 6 16:38 localtime ->
> ../../../etc/localtime
>
> Please help ...
>
> P.S. My local time right now is GMT + 8 (Thu Apr 8 20:47:40 GMT +8
1999).
>
>
> Thanks,
>
> Joel
>
> Marc van Selm wrote:
>>
>> At 01:57 PM 4/6/99 +0800, Joel Taqueban wrote:
>> >I'm a little confused on the way Squid generates time. This I noticed
>> when >access is being denied for URL's during disallowed times. Sample of
>> >requested URL Error:
>>
>> [...]
>>
>> >I'm particularly interested in the time generated by squid (on red mark).
>> My >Linux local time is GMT + 8 (Tue Apr 6 12:24:40 GMT +8 1999).
>> >Shouldn't the squid time be Tue, 06 Apr 1999 04:24:40 GMT instead ?
>> That >is, it should be my local time less 8 hours to get the GMT time
>> (since Squid >displays Zulu time instead of my local time)?
>>
>> First your system clock should be set to GMT and you should use the
correct
>> time zone to display the correct local time. I expect if you sync the time
>> on your machine to a NTP-server you'll see you were not running the
correct
>> time in GMT and the correct time zone. You have to start digging into your
>> OS config I think...
>>
>> >Also, would it be possible to change the message 'your service provider'
>> (the >one with the green mark) with another text from the Access Denied
>> message ?
>>
>> In the etc dir you'll find a directory with all the error-pages. You can
>> change them anyway you like.
>>
>> Appreciate your kind reply,
>>
>> Joel
>>
>>
>>
>> ---------------------------------------------------------------------
>> Marc van Selm
>> NATO C3 Agency
>> Communication Systems Division, A-Branch
>> Tel: +31 70 3142454
>> E-mail: marc.van.selm@nc3a.nato.int
>> ---------------------------------------------------------------------
>> Private: selm@cistron.nl, selm@het.net,
>> <http://www.cistron.nl/~selm>http://www.cistron.nl/~selm
>
---------------------------------------------------------------------
Marc van Selm
NATO C3 Agency
Communication Systems Division, A-Branch
Tel: +31 70 3142454
E-mail: marc.van.selm@nc3a.nato.int
---------------------------------------------------------------------
Private: selm@cistron.nl, selm@het.net, http://www.cistron.nl/~selm
Received on Fri Apr 09 1999 - 00:42:02 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:46 MST