LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 08: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, 09:30 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

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


Closed Thread



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 09:47 AM
How to disable or hide error page (message)? megaweak Linux - Newbie 4 11-21-2012 12:03 AM
Time display wrong in web page glowe Linux - Server 3 03-17-2007 10:18 AM
kmail displays wrong time mlezius Linux - General 0 03-12-2003 06:09 AM

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

All times are GMT -5. The time now is 03:03 AM.

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
Open Source Consulting | Domain Registration