Time change not working...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Time change not working...
# 1  
Old 10-24-2001
Question Time change not working...

Hi, I am pretty new to the Solaris world. Just installed the version 8 and found that the time is off. I am in the Central time zone. In the beginning, the date and time was off by a day. After changing the /etc/default/init, there is no avail. The date is now correct but the time is still 5 hours behind. For instance, the time now shown on the system is 2:50PM CDT instead of 7:50PM. Can anyone point me to the right direction?? Thanks.
# 2  
Old 10-25-2001
If your time zone and date are correct, which I think you are indicating to be true, then you can just use the "date" command (see man date) to set the time to the correct time. For example, if it is 11:35 am, you could set the time by running:

date 1135.00

That should do it.
# 3  
Old 10-25-2001
Thanks for your reply. Would that changed it permanently? I believe I tried that once but when I have the system reboot, I typed :

$ date

it defaults back to the wrong time again.
# 4  
Old 10-25-2001
It should change it permanently. If you have a time server some where, that could be setting it back.
# 5  
Old 10-25-2001
Where can I find out if where the time server is and how do I go about making that changes?

Thanks in advance.
# 6  
Old 10-27-2001
It's hard to say but I would start by looking in your startup scripts for ntpdate if you are using and ntp server. When you installed Solaris 8, did you select NIS/NIS+?
# 7  
Old 10-31-2001
Lightbulb time is always a problem

Hi there!
If you're not sure if you have a time server, try executing /usr/sbin/ntpq. One at the ntpq prompt, type pe ( if you type `?`, you will see the commans possible ). If the return looks something like "read: Connection refused", that means you have no time server.
What I would suggest to fix your time problem, would be to boot in single-user, change your time, and reboot again.

Otherwise, the NTP service is a good way to fix all these problems. You can find more info at
ntp
and
NTP FAQ

Hope this will help

Jason
a_new_admin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Change delimiter is not working using awk

I have file 2.txt and I want to change the delimiter form , to : Not sure what is the problem with below command cat 2.txt 1,a 2,b 3,d awk 'BEGIN {FS=",";OFS=":";} {print $0}' 2.txt Please use CODE tags as required by forum rules! (11 Replies)
Discussion started by: vamsi.valiveti
11 Replies

2. Shell Programming and Scripting

Why is sort -k not working all the time?

I have a script that puts a list of files in two separate arrays: First, I get a file list from a ZIP file and fill `FIRST_Array()` with it. Second, I get a file list from a control file within a ZIP file and fill `SECOND_Array()` with it while read length date time filename ... (8 Replies)
Discussion started by: alan
8 Replies

3. Debian

change time

Hi all, I want change the time settings from EST to IST by using command line in Debian os. but it is not taken. Can any body show me the how to change the time settings by using command line. Thanks, (1 Reply)
Discussion started by: mastansaheb
1 Replies

4. Shell Programming and Scripting

FTP mget * not working after change directory -cd

Hi everyone, I have an Linux FTP script to get files from different AS400 mailboxes and store in different local directories. I had to use mget * option becuase there is no fixed destination file name means filename can change. The following FTP script is working fine if we have single file... (5 Replies)
Discussion started by: oravikiran
5 Replies

5. Linux

DST Time Change for positive timezones not working

I was doing timezone and DST testing which is required for some of my products Here is the strange behaviour i observed First i did set the timezone to PST 2010 (which is less than GMT basically negative timezone) zdump -v /etc/localtime |grep 2010 /etc/localtime Sun Mar 14 09:59:59... (0 Replies)
Discussion started by: ravindra1103
0 Replies

6. UNIX for Advanced & Expert Users

How do I change the minimum working frequency ?

The file /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_frequency reads a value of 800 Mhz . The powertop tool also suggested that 800 Mhz w3as the minimum frequency being used . I changed the above-mentioned file to 1.6 GHz and monitored powertop tool again . To my surprise, it still said that... (3 Replies)
Discussion started by: vishwamitra
3 Replies

7. Solaris

change time

The time of our Solaris server now is slowly more 20 seconds. How can we change it ? (3 Replies)
Discussion started by: anhtt
3 Replies

8. Linux

How To change time?

what command must i use to change time ? (4 Replies)
Discussion started by: Sirius
4 Replies

9. Shell Programming and Scripting

how to change working directories in perl?

i am new to perl. i am writing a perl script. i want to know how to change the working directories? for ex. i have a perl script in c:\proj\ . i want to run this script in this directory but i need my script to change its working directory to D:\xyz\ dynamically in the script. your help is... (1 Reply)
Discussion started by: megastar
1 Replies

10. UNIX for Dummies Questions & Answers

Change to a new working directory...

I need to CD to a particular directory to check log files and interface files. Instead of typing the path manually, is there a way of getting a script to change my working directory to the one I need? Currently I have a script that CD's to the directories I need but a soon as the script exits,... (5 Replies)
Discussion started by: jagannatha
5 Replies
Login or Register to Ask a Question