LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-17-2002, 01:48 PM   #1
jcmj
LQ Newbie
 
Registered: Oct 2002
Location: Chi Town
Posts: 4

Rep: Reputation: 0
lastlog date does not match system date?


I am using ntpd to get the UTC clock and that is correct. I then have set up the TZ in the default profile as TZ=CST6CDT for Chicago and it is fine. However when you login, Last Login: display a time other than the system time as specified in date. Seems it is getting it from two independent sources? How do I change the date used in lastlog?
 
Old 10-17-2002, 02:02 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
What is the time you see in lastlog? Is it +6h?
 
Old 10-17-2002, 07:41 PM   #3
jcmj
LQ Newbie
 
Registered: Oct 2002
Location: Chi Town
Posts: 4

Original Poster
Rep: Reputation: 0
lastlog date

Mara, I believe it is +5 do to the fact of CST6CDT on the TZ setting In a wek it will propabaly be +6.

Any idea on how to line them up?
 
Old 10-18-2002, 06:06 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
So I guess your ntpd is downloading UTC time and your system is using your local time?
 
Old 10-18-2002, 08:26 AM   #5
jcmj
LQ Newbie
 
Registered: Oct 2002
Location: Chi Town
Posts: 4

Original Poster
Rep: Reputation: 0
lastlog posting date

Mara, that may be true and if it is for a Systems admin person it would be better to align the lastlog time with the local time..

Reading a log and having to caculate a time shift to see when things really happened is a pain.
 
Old 10-18-2002, 02:58 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Ntpd has problems with timezones, as far as I know. I use chronyd. When you run it this way
chronyd -r -s
It should set the right time.
 
Old 10-22-2002, 01:09 PM   #7
jcmj
LQ Newbie
 
Registered: Oct 2002
Location: Chi Town
Posts: 4

Original Poster
Rep: Reputation: 0
Marla,

You can just edit the clock file in /etc/sysconfig...

UTC=false
ZONE=znehCDT
 
  


Reply


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
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 11:17 AM
system date tipsy Debian 5 08-07-2005 09:17 PM
date of linux system pragti Programming 1 06-09-2004 02:24 AM
Change system time or date or both lel800 Linux - Newbie 6 10-28-2003 08:00 PM
call for system date in c mr.moto Programming 2 09-30-2002 04:23 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration