15.2. Manually configuring the date, time and timezone settings


You can manually configure date, time, and timezone settings on RHEL systems to ensure accurate timekeeping across your environment. Proper time configuration is essential for authentication, logging, troubleshooting, and maintaining consistency with other systems in your infrastructure.

Note, prefer time synchronization by using chrony.

Procedure

  1. Optional: List the timezones:

    # timedatectl list-timezones
    
      Europe/Berlin
  2. Set the time zone:

    # timedatectl set-timezone <time_zone>
  3. Set the date and time:

    # timedatectl set-time <YYYY-mm-dd HH:MM-SS>

Verification

  1. Display the date, time, and timezone:

    # date
    Mon May 5 09:11:55 CEST 2025
  2. To see more details, use the timedatectl command:

    # timedatectl
    
     Local time: Mon 2025-05-05 09:11:55 CEST
               Universal time: Mon 2025-05-05 07:11:55 UTC
                     RTC time: Mon 2025-05-05 07:11:55
                    Time zone: Europe/Berlin (CEST, +0200)
    System clock synchronized: no
                  NTP service: inactive
              RTC in local TZ: no

    For more information, see the date(1) and timedatectl(1) man pages on your system.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部