{"id":806,"date":"2012-09-17T04:02:56","date_gmt":"2012-09-17T10:02:56","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=806"},"modified":"2026-01-08T22:58:52","modified_gmt":"2026-01-09T04:58:52","slug":"change-timezone-linux-timedatectl","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/change-timezone-linux-timedatectl\/","title":{"rendered":"How to Change Time Zone in Linux"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog-.png\" data-rel=\"penci-gallery-image-content\" ><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog--1024x576.png\" alt=\"Timezone in world map\" class=\"wp-image-15171\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog--1024x576.png 1024w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog--300x169.png 300w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog--768x432.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog--1536x864.png 1536w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog--1170x658.png 1170w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog--585x329.png 585w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2012\/09\/Indexing-Blog-.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n<p data-start=\"265\" data-end=\"547\">Setting the correct time zone on a Linux server is important for logs, cron jobs, monitoring tools, and applications. A wrong time zone can create confusion while debugging or tracking events. This guide explains <strong data-start=\"478\" data-end=\"513\">both the modern and legacy ways<\/strong> to change the time zone in Linux.<\/p>\n<h3 data-start=\"554\" data-end=\"593\">Step 1: Check the Current Time Zone<\/h3>\n<p data-start=\"595\" data-end=\"658\">Login to the server as root or a user with sudo access and run:<\/p>\n<p data-start=\"595\" data-end=\"658\"><em><strong><span style=\"font-size: revert;\">date<\/span><\/strong><\/em><\/p>\n<p data-start=\"678\" data-end=\"693\">Example output:\u00a0 \u00a0<span style=\"font-size: revert;\">Wed Sep 12 15:13:14 IST 2012<\/span><\/p>\n<p data-start=\"736\" data-end=\"775\">Here, <strong data-start=\"742\" data-end=\"749\">IST<\/strong> is the current time zone.<\/p>\n<h2 data-start=\"782\" data-end=\"826\">Recommended Method (Modern Linux Systems)<\/h2>\n<p data-start=\"828\" data-end=\"951\">This method works on <strong data-start=\"849\" data-end=\"918\">RHEL 7+, CentOS 7+, Rocky Linux, AlmaLinux, Ubuntu 16.04+, Debian<\/strong>, and most systemd-based systems.<\/p>\n<h3 data-start=\"958\" data-end=\"995\">Step 2: List Available Time Zones<\/h3>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><em><strong>timedatectl list-timezones<\/strong><\/em><\/div>\n<div dir=\"ltr\">\u00a0<\/div>\n<\/div>\n<p data-start=\"1037\" data-end=\"1112\">You can scroll and find the required region.<br data-start=\"1081\" data-end=\"1084\" \/>For United States, the time zone is:<\/p>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><em><strong>America\/Chicago<\/strong><\/em><\/div>\n<\/div>\n<h3 data-start=\"1145\" data-end=\"1174\">Step 3: Set the Time Zone<\/h3>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl\/main:top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><em><strong>timedatectl set-timezone America\/Chicago<\/strong><\/em><\/div>\n<\/div>\n<\/div>\n<div dir=\"ltr\">\u00a0<\/div>\n<\/div>\n<p data-start=\"1227\" data-end=\"1254\">This command automatically:<\/p>\n<ul data-start=\"1255\" data-end=\"1349\">\n<li data-start=\"1255\" data-end=\"1281\">\n<p data-start=\"1257\" data-end=\"1281\">Updates<strong> \/etc\/localtime<\/strong><\/p>\n<\/li>\n<li data-start=\"1282\" data-end=\"1314\">\n<p data-start=\"1284\" data-end=\"1314\">Applies the change system-wide<\/p>\n<\/li>\n<li data-start=\"1315\" data-end=\"1349\">\n<p data-start=\"1317\" data-end=\"1349\">Keeps the hardware clock in sync<\/p>\n<\/li>\n<\/ul>\n<h3 data-start=\"1356\" data-end=\"1385\">Step 4: Verify the Change<\/h3>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl\/main:top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><em style=\"font-size: revert;\"><strong>timedatectl<\/strong><\/em><\/div>\n<\/div>\n<\/div>\n<div dir=\"ltr\">\u00a0<\/div>\n<\/div>\n<p data-start=\"1412\" data-end=\"1414\">or<\/p>\n<p data-start=\"1412\" data-end=\"1414\"><em style=\"font-size: revert;\"><strong>date<\/strong><\/em><\/p>\n<p data-start=\"1434\" data-end=\"1475\">You should now see the updated time zone.<\/p>\n<h3 data-start=\"1482\" data-end=\"1535\">Step 5: Enable Time Synchronization\u00a0<\/h3>\n<p data-start=\"1537\" data-end=\"1578\">Modern systems use NTP for accurate time.<\/p>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><em><strong>timedatectl set-ntp true<\/strong><\/em><\/div>\n<div dir=\"ltr\">\u00a0<\/div>\n<\/div>\n<p data-start=\"1618\" data-end=\"1676\">This ensures your system time stays correct automatically.<\/p>\n<h2 data-start=\"1683\" data-end=\"1721\">Legacy Method (Older Linux Systems)<\/h2>\n<p data-start=\"1723\" data-end=\"1782\">Use this method only if <strong>timedatectl<\/strong>\u00a0is <strong data-start=\"1764\" data-end=\"1781\">not available<\/strong>.<\/p>\n<h3 data-start=\"1789\" data-end=\"1832\">Step 6: Navigate to Time Zone Directory<\/h3>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl\/main:top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\">\u00a0<\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><em><strong>cd \/usr\/share\/zoneinfo<\/strong><\/em><br \/><em><strong>ls<\/strong><\/em><\/div>\n<div dir=\"ltr\">\u00a0<\/div>\n<\/div>\n<p data-start=\"1873\" data-end=\"1936\">You will see directories like America, Europe, Asia, etc.<\/p>\n<h3 data-start=\"1943\" data-end=\"1994\">Step 7: Backup Existing Time Zone Configuration<\/h3>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl\/main:top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\">\u00a0<\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><em><strong>mv \/etc\/localtime \/etc\/localtime-old<\/strong><\/em><\/div>\n<\/div>\n<h3 data-start=\"2051\" data-end=\"2107\">Step 8: Create a Symbolic Link for the New Time Zone<\/h3>\n<p data-start=\"2109\" data-end=\"2127\">Example for India:<\/p>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl\/main:top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><em><strong>ln -sf \/usr\/share\/zoneinfo\/Asia\/Kolkata \/etc\/localtime<\/strong><\/em><\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3 data-start=\"2202\" data-end=\"2235\">Step 9: Update Hardware Clock<\/h3>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl\/main:top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\">\u00a0<\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><em><strong>hwclock &#8211;systohc<\/strong><\/em><\/div>\n<div dir=\"ltr\">\u00a0<\/div>\n<\/div>\n<p data-start=\"2268\" data-end=\"2318\">This writes the system time to the hardware clock.<\/p>\n<h3 data-start=\"2325\" data-end=\"2370\">Step 10: (Optional \u2013 Legacy Systems Only)<\/h3>\n<p data-start=\"2372\" data-end=\"2420\">For <strong data-start=\"2376\" data-end=\"2411\">older RHEL\/CentOS (6 and below)<\/strong>, update:<\/p>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<p><em><strong>vi \/etc\/sysconfig\/clock<\/strong><\/em><\/p>\n<\/div>\n<p data-start=\"2459\" data-end=\"2473\">Add or modify:<\/p>\n<div class=\"contain-inline-size rounded-2xl corner-superellipse\/1.1 relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-[calc(--spacing(9)+var(--header-height))] @w-xl\/main:top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div><em><strong>ZONE=&#8221;America\/Chicago&#8221;<\/strong><\/em><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-text\"><\/code><\/div>\n<\/div>\n<blockquote data-start=\"2507\" data-end=\"2559\">\n<p data-start=\"2509\" data-end=\"2559\">This file is <strong data-start=\"2522\" data-end=\"2534\">not used<\/strong> on modern Linux systems.<\/p>\n<\/blockquote>\n<h2 data-start=\"2566\" data-end=\"2584\">Important Notes<\/h2>\n<ul data-start=\"2586\" data-end=\"2757\">\n<li data-start=\"2586\" data-end=\"2646\">\n<p data-start=\"2588\" data-end=\"2646\">The <code data-start=\"2592\" data-end=\"2599\">rdate<\/code> command is <strong data-start=\"2611\" data-end=\"2625\">deprecated<\/strong> and not recommended.<\/p>\n<\/li>\n<li data-start=\"2647\" data-end=\"2695\">\n<p data-start=\"2649\" data-end=\"2695\">Always prefer <code data-start=\"2663\" data-end=\"2676\">timedatectl<\/code> on modern servers.<\/p>\n<\/li>\n<li data-start=\"2696\" data-end=\"2757\">\n<p data-start=\"2698\" data-end=\"2757\">Time synchronization should be enabled to avoid time drift.<\/p>\n<\/li>\n<\/ul>\n<h3 data-start=\"2764\" data-end=\"2778\">Conclusion<\/h3>\n<p data-start=\"2780\" data-end=\"3004\">Changing the time zone in Linux is simple when using the correct method for your system. Modern Linux distributions make this task easier and safer using <code data-start=\"2934\" data-end=\"2947\">timedatectl<\/code>, while older systems still support manual configuration.<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting the correct time zone on a Linux server is important for logs, cron jobs, monitoring tools, and applications. A wrong time zone can create confusion while debugging or tracking&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-806","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":12,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/806\/revisions"}],"predecessor-version":[{"id":15173,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/806\/revisions\/15173"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}