
However, this is only a temporary change, and we need to copy and paste the command above to the. This will change the current system’s timezone to Europe/London. In the Control Panel tab, Under Clock, Language, and Region menu, click on Set the time and date. Next, we need to set the generated timezone name with the TZ environment variable: $ export TZ="Europe/London" Here is that TZ value again, this time on standard output so that youĬan use the /usr/bin/tzselect command in shell scripts: To the file '.profile' in your home directory then log out and log in again. whm-1.png Select the desired time zone from the drop-down menu. You can make this change permanent for yourself by appending the line From the left-menu, under Server Configuration, click on Server Time. Once we make a selection we should expect this output. We’ll get a prompt to select a continent, then a country, or specify coordinates of the location. Please select a continent, ocean, "coord", or "TZ".ġ0) coord - I want to use geographical coordinates.ġ1) TZ - I want to specify the timezone using the Posix TZ format. Set Time, Date Timezone in Linux from Command Line or Gnome Use ntp Set date from the command line date +Ymd -s 20120418 Set time from the command. Please identify a location so that time zone rules can be set correctly. Let’s use the tzselect command to output the name and description of a timezone: $ tzselect We can use the output as a value for the $TZ environment variable.

The tzselect Linux utility asks users for information about their current location or a specific location and outputs the resulting timezone description to stdout.
