Facebook X (Twitter) Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook X (Twitter) Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Ubuntu»How to Change Timezone on Ubuntu 18.04 & 16.04 LTS

    How to Change Timezone on Ubuntu 18.04 & 16.04 LTS

    By RahulAugust 12, 20191 Min Read

    All the operating systems have a default time zone configured. Sometimes users are required to change the default timezone to some other timezone as per their requirements on Linux system. This tutorial will help to change the timezone on Ubuntu 19.10, 19.04, 18.04 LTS, & 16.04 LTS systems.

    Check Current Timezone

    Linux uses /etc/localtime file as current systems timezone. We can simply use “date” command to check current timezone.

    date
    
    Mon Aug 12 05:10:58 UTC 2019
    

    As per the above output, the current time zone is set to IST.

    Change Timezone on Ubuntu

    The Ubuntu operating systems keep all timezone configuration files inside /usr/share/zoneinfo/ directory. Before using the new configuration, rename or unlink old configuration file as:

    sudo mv /etc/localtime /etc/localtime.old
    

    Then create a symbolic link of /etc/localtime with new timezone settings file. For below example, I am using America/New_York (EST/PST) timezone for my server. To find out more timezone list visit here.

    sudo ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
    

    Your time zone has been changed successfully. Let’s check timezone again.

    date
    
    Mon Aug 12 01:11:55 EDT 2019
    

    date datetime time timezone
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Python Program to Convert String to Datetime

    How to Change the Timezone in a Docker Container

    Setting and Getting the Default Timezone in Python

    View 1 Comment

    1 Comment

    1. Jay on November 4, 2015 9:59 am

      Thanks bro…

      Working perfect.

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Difference Between Full Virtualization vs Paravirtualization
    • Virtualization vs. Containerization: A Comparative Analysis
    • Using .env Files in Django
    • Using .env File in FastAPI
    • Setting Up Email Notifications for Django Error Reporting
    Facebook X (Twitter) Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.