DEV Community

Cover image for 15.Timezone Alignment
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

15.Timezone Alignment

Lab Information

In the daily standup, it was noted that the timezone settings across the Nautilus Application Servers in the Stratos Datacenter are inconsistent with the local datacenter's timezone, currently set to Africa/Abidjan.

Synchronize the timezone settings to match the local datacenter's timezone (Africa/Abidjan).

Lab Solutions

🧭 Part 1: Lab Step-by-Step Guidelines

πŸ”Ή Step 1: Log in to Jump Host
ssh thor@jump_host.stratos.xfusioncorp.com

Password:

mjolnir123

πŸ” Perform the following steps on ALL three App Servers

πŸ”Ή Step 2: SSH into App Server

App Server 1
ssh tony@stapp01.stratos.xfusioncorp.com
Ir0nM@n

App Server 2
ssh steve@stapp02.stratos.xfusioncorp.com
Am3ric@

App Server 3
ssh banner@stapp03.stratos.xfusioncorp.com
BigGr33n

πŸ”Ή Step 3: Switch to root

sudo -i
Enter fullscreen mode Exit fullscreen mode

πŸ”Ή Step 4: Set timezone

timedatectl set-timezone Africa/Abidjan
Enter fullscreen mode Exit fullscreen mode

πŸ”Ή Step 5: Verify timezone

timedatectl
Enter fullscreen mode Exit fullscreen mode

You must see:

               Local time: Sat 2026-02-28 13:47:36 GMT
           Universal time: Sat 2026-02-28 13:47:36 UTC
                 RTC time: n/a
                Time zone: Africa/Abidjan (GMT, +0000)
System clock synchronized: yes
              NTP service: n/a
          RTC in local TZ: no
Enter fullscreen mode Exit fullscreen mode

πŸ” Repeat Steps 2–5 on all three App Servers
βœ… Final Checklist

βœ” Completed on stapp01
βœ” Completed on stapp02
βœ” Completed on stapp03
βœ” Timezone set to Africa/Abidjan
βœ” Verified using timedatectl
βœ” No reboot performed

🧠 Part 2: Simple Step-by-Step Explanation (Beginner Friendly)

πŸ”Ή What is the issue?

The servers have inconsistent timezone settings.

The datacenter timezone is:

Africa/Abidjan

All app servers must match it.

πŸ”Ή What does timedatectl set-timezone do?

It updates the system’s timezone configuration immediately.

It modifies the systemd time configuration without reboot.

πŸ”Ή Why no reboot?

timedatectl applies changes instantly.

Rebooting is unnecessary and not allowed per lab instructions.

πŸ”Ή Why is timezone important?

Incorrect timezone can cause:

Incorrect logs

Broken cron schedules

Authentication timestamp issues

Monitoring inconsistencies

Keeping servers aligned ensures consistent operations.


Resources & Next Steps
πŸ“¦ Full Code Repository: KodeKloud Learning Labs
πŸ“– More Deep Dives: Whispering Cloud Insights - Read other technical articles
πŸ’¬ Join Discussion: DEV Community - Share your thoughts and questions
πŸ’Ό Let's Connect: LinkedIn - I'd love to connect with you

Credits
β€’ All labs are from: KodeKloud
β€’ I sincerely appreciate your provision of these valuable resources.

Top comments (0)