{"id":3562,"date":"2023-11-17T16:20:17","date_gmt":"2023-11-17T08:20:17","guid":{"rendered":"https:\/\/www.servergigabit.com\/guide\/?post_type=kb&#038;p=3562"},"modified":"2026-03-16T14:28:34","modified_gmt":"2026-03-16T06:28:34","slug":"changing-the-timezone-linux-windows-server","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/changing-the-timezone-linux-windows-server","title":{"rendered":"Changing the Timezone:2 Easy Methods for Linux and Windows Servers"},"content":{"rendered":"<header class=\"entry-header \">\n<div class=\"entry-meta\"><\/div>\n<\/header>\n<div class=\"entry-content clear\">\n<div class=\"wp-block-spacer\" aria-hidden=\"true\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-3563\" src=\"https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/images-5.jpeg\" alt=\"Changing the Timezone\" width=\"669\" height=\"445\" \/><\/div>\n<p>Accurate timezone configuration is essential for ensuring proper time representation and synchronization across various applications and services on your server. This guide provides step-by-step instructions for changing the timezone on both <a href=\"https:\/\/www.servergigabit.com\/linux-vps-hosting\/\">Linux VPS,<\/a>\u00a0 <a href=\"https:\/\/www.servergigabit.com\/windows-vps-hosting\/\">Windows VPS<\/a> and <a href=\"https:\/\/www.servergigabit.com\/dedicated-server\/\">Dedicated Servers.<\/a><\/p>\n<h2 id=\"h-linux\" class=\"wp-block-heading\"><span id=\"linux\" class=\"uag-toc__heading-anchor\"><\/span><strong>Linux<\/strong><\/h2>\n<ol data-sourcepos=\"9:1-20:0\">\n<li data-sourcepos=\"9:1-10:0\">\n<p data-sourcepos=\"9:4-9:42\">Connect to your server as root via SSH.<\/p>\n<\/li>\n<li data-sourcepos=\"11:1-12:0\">\n<p data-sourcepos=\"11:4-11:71\">Check the current date, time, and timezone using the <code>date<\/code> command.<\/p>\n<\/li>\n<li data-sourcepos=\"13:1-14:0\">\n<p data-sourcepos=\"13:4-13:97\">To configure a different timezone, use the <code>timedatectl set-timezone [new\/time_zone]<\/code> command.<\/p>\n<\/li>\n<li data-sourcepos=\"15:1-16:0\">\n<p data-sourcepos=\"15:4-15:77\">Available time zones can be found in the <code>\/usr\/share\/zoneinfo\/<\/code> directory.<a href=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/l_timezones1-1024x200.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"wp-image-6028\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/l_timezones1-1024x200.png\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/l_timezones1-1024x200.png 1024w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/l_timezones1-300x59.png 300w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/l_timezones1-768x150.png 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/l_timezones1-1536x301.png 1536w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/l_timezones1.png 1860w\" alt=\"Change the Timezone (timezone I)\" width=\"1024\" height=\"200\" \/><\/a><\/p>\n<\/li>\n<li data-sourcepos=\"17:1-18:0\">\n<p data-sourcepos=\"17:4-17:131\">For example, to set the timezone to Europe\/London, execute the command: <code>root@server1:~# timedatectl set-timezone Europe\/London<picture><img decoding=\"async\" class=\"wp-image-17232 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/08\/image.png\" sizes=\"(max-width: 1036px) 100vw, 1036px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/08\/image.png 836w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/08\/image-600x83.png 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/08\/image-768x107.png 768w\" alt=\"Change the Timezone (timezone II)\" width=\"1036\" height=\"144\" \/><\/picture><\/code><\/p>\n<\/li>\n<li data-sourcepos=\"19:1-20:0\">\n<p data-sourcepos=\"19:4-19:56\">Verify the updated timezone using the <code>date<\/code> command.<\/p>\n<\/li>\n<\/ol>\n<h1>Windows<\/h1>\n<ol data-sourcepos=\"23:1-35:54\">\n<li data-sourcepos=\"23:1-24:0\">\n<p data-sourcepos=\"23:4-23:36\">Connect to your server using RDP.<\/p>\n<\/li>\n<li data-sourcepos=\"25:1-26:0\">\n<p data-sourcepos=\"25:4-25:74\">Open the Run dialog by pressing <code>Windows<\/code> + <code>R<\/code> or searching for &#8220;run&#8221;.<\/p>\n<\/li>\n<li data-sourcepos=\"27:1-28:0\">\n<p data-sourcepos=\"27:4-27:174\">Execute <span class=\"citation-0\">the following command: <\/span><code><span class=\"citation-0 citation-end-0\">reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation\" \/v RealTimeIsUniversal<\/span> \/t REG_QWORD \/d 1 \/f<\/code><\/p>\n<\/li>\n<li data-sourcepos=\"29:1-30:0\">\n<p data-sourcepos=\"29:4-29:169\">This command creates a DWORD value named &#8220;RealTimeIsUniversal&#8221; and sets its value to &#8220;1&#8221;, allowing the timezone of your instance to be different from the host system.<\/p>\n<\/li>\n<li data-sourcepos=\"31:1-32:0\">\n<p data-sourcepos=\"31:4-31:74\">Open Settings and navigate to &#8220;Time &amp; Language&#8221; -&gt; &#8220;Date and Time&#8221;.<\/p>\n<\/li>\n<li data-sourcepos=\"33:1-34:0\">\n<p data-sourcepos=\"33:4-33:29\">Set your desired timezone.<a href=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/w_timezones4.png\" target=\"_blank\" rel=\"noopener\"><picture><img decoding=\"async\" class=\"wp-image-7973 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2019\/09\/w_timezones4.png\" alt=\"\" \/><\/picture><\/a><\/p>\n<\/li>\n<li data-sourcepos=\"35:1-35:54\">\n<p data-sourcepos=\"35:4-35:54\">Restart your server for the changes to take effect.<\/p>\n<\/li>\n<\/ol>\n<h2 data-sourcepos=\"31:1-31:14\"><strong>Conclusion<\/strong><\/h2>\n<p data-sourcepos=\"33:1-33:159\">By following these instructions, you can easily change the timezone on your VPS or dedicated server, ensuring accurate time representation and synchronization.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Accurate timezone configuration is essential for ensuring proper time representation and synchronization across various applications and services on your server. This guide provides step-by-step instructions for changing the timezone on both Linux VPS,\u00a0 Windows VPS and Dedicated Servers. Linux Connect to your server as root via SSH. Check the current date, time, and timezone using the date command. To configure&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[1099],"kbtag":[1226],"class_list":["post-3562","kb","type-kb","status-publish","hentry","kbtopic-tutorials","kbtag-changing-the-timezone"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=3562"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3562\/revisions"}],"predecessor-version":[{"id":6313,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3562\/revisions\/6313"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=3562"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=3562"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=3562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}