LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 04-02-2017, 09:59 PM   #1
forneylloyd@hotmail.com
LQ Newbie
 
Registered: Mar 2017
Posts: 4

Rep: Reputation: Disabled
Squids 3.5.12 error message page displays the wrong time.


How do I change the time environment variable not to use GMT but the local time. I have Ubuntu Server 16.04 installed and Squid 3.5.12. When I go to a website this is restricted or denied an Error page is generated and at the bottom of the Error Page Squid generates the following message: Generated Mon, 03 Apr 2017 01:14:53 GMT by The*Proxy (squid/3.5.12). My time is Los Angeles and my current time is Local time is now: Sun Apr 2 18:01:55 PDT 2017. Current default time zone: 'America/Los_Angeles' But if you notice the message generated by Squid, it not only is 6 hours ahead of my time but that actual date is off.

I read where I could add a line in the ~/.bashrc, TZ='America/Los_Angeles'; export TZ, that did not work. I read where the TZ environment variable could be changed. The problems is I don't know how to change the Time or TZ environment variable.

But it is obvious that the Squid Proxy Software is using GMT and my local machine is using local time. I am also using ntp and ntpdate, both are using the correct time. Can you help me?
 
Old 04-02-2017, 10:30 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,552

Rep: Reputation: 3145Reputation: 3145Reputation: 3145Reputation: 3145Reputation: 3145Reputation: 3145Reputation: 3145Reputation: 3145Reputation: 3145Reputation: 3145Reputation: 3145
Duplicate thread.
Continue here:
http://www.linuxquestions.org/questi...me-4175603068/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Evolution calendar displays wrong time for appointments Jlove130 Linux - Desktop 4 04-25-2013 10:47 AM
How to disable or hide error page (message)? megaweak Linux - Newbie 4 11-21-2012 01:03 AM
Time display wrong in web page glowe Linux - Server 3 03-17-2007 11:18 AM
kmail displays wrong time mlezius Linux - General 0 03-12-2003 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration