Check and Change current TimeZone in Debian and Ubuntu

Category : Linux/ Unix

Wondering about TimeZone of your Debian or Ubuntu Machine and want to change it? Let’s follow this small guide to check and change current TimeZone in Debian and Ubuntu.

Requirements

  • Root SSH Access to the Machine (Root Needed to change TimeZone)

Procedure

Check Current Date, Time and TimeZone in Debian/Ubuntu

  1. Check Date of your Machine which includes Time.

    date

  2. Check Current TimeZone.

    date +’%Z %z’

    My Current TimeZone is CDT
    date and timezone

Change TimeZone in Debian/Ubuntu

  1. Run the following command to select TimeZone.

    dpkg-reconfigure tzdata

  2. Select desired Geographic Area and TimeZone.
    geographic area
    select timezone
    timezone changes