• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • AI Agents
    • OpenClaw
    • Claude Code
    • n8n
    • Hermes Agent
    • Open WebUI
    • Docker
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
    • Email Hosting
    • HeroicGuard
    • GPU Hosting
    • Website Builder
  • VPS
    • Managed VPS
    • Unmanaged VPS
    • Flex VPS
  • Reseller
  • Gaming
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

Ubuntu Time Essentials: From Time Zones to NTP

CJ Saathoff

Published on: April 2, 2024

Categories: Linux Command Line 0

Setting the correct timezone on your Ubuntu system is crucial for maintaining accurate time and date information, which is essential for scheduling tasks, logging events, and ensuring proper system functionality.

In this guide, we will walk you through the process of setting the date, time zone, and time, as well as configuring NTP. We will cover this from both the GUI (Graphical User Interface) and the command line.

Table of Contents
  • Introduction
  • Set Via Desktop GUI
    • Automatic Date/Time
    • Setting Date And Time:
    • Setting Timezone:
  • Set Via The Commands Line
    • Setting Date And Time:
    • Setting Timezone:
    • Configuring NTP (Network Time Protocol):
  • Verification
  • Conclusion

Introduction

In Ubuntu, users have the convenience of adjusting their system’s timezone through both the desktop environment and the command line interface. Whether you prefer a graphical approach or a command-based configuration, Ubuntu offers straightforward methods to set the timezone, date, and time according to your location and preferences. This guide will walk you through the step-by-step process of setting the timezone in Ubuntu, covering both desktop and command line methods. From adjusting the date and time settings to configuring the Network Time Protocol (NTP) for accurate time synchronization, you will learn how to ensure your Ubuntu system is accurately configured to reflect the correct timezone.

Set Via Desktop GUI

Setting the timezone, date, and time through the Ubuntu desktop environment offers a user-friendly interface for managing time-related settings. Here’s how you can adjust these settings using the graphical interface:

  • Open Settings
  • Go to the Date & Time tab as shown in the screenshot below:
Ubuntu Setings, Date & Time section

Automatic Date/Time

For devices that are mobile like laptops where you may be traveling with them, I would recommend checking the Automatic Date & Time as well as Automatic Time Zone.

I acknowledge there are times this you can’t use these or times when it may not be ideal, below are the steps on how to manually set the date and time.

Setting Date And Time:

Note: If Automatic Date & Time is enabled you won’t be able to manually set the date and Time.

  • Click on the Date & Time Section and it will pull up the window shown below:
Ubuntu Settings, Date & Time, Set Date & Time Window
  • From here set the desired date and time and close out of the window.

Setting Timezone:

Note: If Automatic Time Zone is enabled you won’t be able to manually set until first unchecking it.

  • Click the Time Zone section it will bring up the window below:
Ubuntu Settings, Date & Time, Time Zone Window
  • There are two options either clicking around on the map or using the search bar at the top.
  • Once you have the Time Zone selected you just need to close the window.

Set Via The Commands Line

Setting the timezone and adjusting the date and time using the timedatectl command in Ubuntu provides a comprehensive way to manage time-related settings efficiently. Here are the steps to change the timezone, date, time, and how to use NTP instead of manually setting the date/time.

Setting Date And Time:

To adjust the system’s date and time using timedatectl, you can use the set-time option followed by the desired date and time format. For example, to set the date to February 28, 2024, and time to noon, use the following command:

sudo timedatectl set-time '2024-02-28 12:00:00'

Setting Timezone:

To change the timezone through timedatectl, you can use the set-timezone option followed by the desired timezone. For example, to set the timezone to America/New_York, use the following command:

sudo timedatectl set-timezone America/New_York

Configuring NTP (Network Time Protocol):

To configure NTP for time synchronization using timedatectl, you can use the set-ntp option followed by either “yes” or “no” to enable or disable NTP synchronization. For example, to enable NTP synchronization, use the following command:

sudo timedatectl set-ntp yes

Verification

Use the timedatectl command to display the current system time, including the timezone information and system status. Open a terminal and enter:

timedatectl

Verify that the displayed time information aligns with expected values.

Below is an example of what the output looks like after running the command.

Example output from the timedatectl command

Conclusion

In this guide, we have explored managing time-related settings on your Ubuntu system, covering essential aspects such as setting time zones, configuring date and time parameters, and managing Network Time Protocol (NTP) synchronization. By mastering these elements, you can ensure that your system maintains accurate timekeeping, essential for various tasks and system operations.

Remember, accurate timekeeping is not just about displaying the correct time; it impacts system logs, scheduling tasks, network interactions, and overall system functionality.

CJ Saathoff

Embracing a lifelong passion for technology since childhood, CJ delved into the intricate workings of systems, captivated by the desire to understand the unknown. This innate curiosity led to his discovery of Linux, a revelation that resonated deeply. With more than 7 years of on the job experience, he’s honed his technical skills as a Geek and Senior Linux Systems Administrator.

Related Posts

Bash Debug Mode: set -x and the PS4 Variable

When coding a program, you usually have a full IDE set up with autocomplete and stack tracing, allowing you to pause execution at any point and see what’s going on under the hood. These tools make coding more productive, and they’ve been in use for a long time. But what if you’re just quickly coding […]

Curl vs Wget: Choosing the Right Tool for the Job

Linux has two popular tools for getting data from third party websites. Here's the difference between curl and wget.

Symbolic Links vs Hard Links in Linux

Linux offers various methods for referencing files and directories through other files and directories, without creating copies of the original. If you have color coding enabled in your bash terminal, you might have seen some folders full of files of a different color from regular files. There’s a good chance that these are all symbolic […]

Linux find with exec: + vs ;

The "find" command is often used with the "exec" command. Here are the two options you can use, and the difference between them.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!


Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • OpenClaw Hosting
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • Managed VPS Hosting
  • Unmanaged VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • GPU Hosting
  • Email Hosting
  • HeroicGuard
  • Domains
  • Website Builder
  • AI Agent Hosting
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2026 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA