04-06-2011 04:03 AM
Since our contry moved into "summer clock" - 1 hour forwards, I would like to set this change in my HP-UX machine. Now the time zone is according to UTC, and there is no out source for updating the time.
Solved! Go to Solution.
04-09-2011 11:26 PM
since the HP machines doesn't receive any synchronization time form out source I used set_parms date_time to define the time (UTC+3).
Then I tried ls -l command and it shows only the MM and the YY of the creation time for each file. No indication of time (Hour:Min) as was before.
I fixed the problem by using the command:
My questions are:
How can I set the time zone without out sync source?
Is there a way for ls -l to display all the following - YY/MM/DD hour:min ?
04-11-2011 12:34 AM - last edited on 08-04-2011 09:25 AM by Kevin_Paul
>Then I tried ls -l command and it shows only the MM and the YY of the creation time for each file. No indication of time (Hour:Min) as was before.
This happens for:
If the time of last modification is greater than six months ago, or any time in the future, the year is substituted for the hour and minute of the modification time.
>How can I set the time zone without out sync source?
The timezone has nothing to do with NTP.
>Is there a way for ls -l to display all the following - YY/MM/DD hour:min?
This requires you to modify ls.cat:
04-11-2011 01:18 AM
Do you know what should I set in the set_parms to be the Time Zone for local time which is UTC +3 hours?
I put UTC+3
Is that shuold work for good? I mean even when the local time will changed again to the "winter clock" (UTC+2)?
04-11-2011 03:11 AM
No. The only why it works for good is if you have a TZ value in /usr/lib/tztab that matches your countries particular start and stop times.
You then put that in /etc/TIMEZONE.
And make sure that "date -u" matches UTC time.