Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

problem with date and time in redhat 9

I am using red hat 9 for page server. The time and date setting of the server changes automatically. The date getting changed to next day date and the time 12 hours more.

Please help



0
prbala
Asked:
prbala
  • 2
2 Solutions
 
pjedmondCommented:
Obviously, check that the bios setting is correct - on startup normally F2 or del.

Otherwise, the key file is probably /etc/localtime. This file dictates what timezone you are in. If you:

vi /etc/localtime, you'll get a load of garbage....but you will see the time zonetowards the end of this binary file. (By the way :q! quits vi in case you are not familair with it!

To correct your timezone if it is wrong, you need to copy the appropriate timezone file from:

/usr/share/zoneinfo

to

/etc/localtime

HTH:)
0
 
bryanlloydharrisCommented:
pjedmond, I think it is also possible to make a symlink /etc/localtime -> /usr/share/zoneinfo/<timezonefile>

Also these questions seem relevant.
http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_21666871.html
http://www.experts-exchange.com/Operating_Systems/Linux/Q_21011514.html
0
 
pjedmondCommented:
Yes - a symbolic link will work just as well:)

(   (()
(`-' _\
 ''  ''
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now