{"id":7022,"date":"2023-01-19T22:54:57","date_gmt":"2023-01-19T17:24:57","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7022"},"modified":"2023-01-19T22:55:02","modified_gmt":"2023-01-19T17:25:02","slug":"how-to-update-change-time-in-the-ubuntu-server","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-update-change-time-in-the-ubuntu-server\/","title":{"rendered":"<strong>How to update\/change time in the Ubuntu server.<\/strong>"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction:<br><\/strong><br>In this guide, we will walk you through the process of updating and changing the time on your Ubuntu server using the command line. When you need to manually set the time, this guide will provide you with the information you need to get started.<br><br><br><strong>Prerequisites:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>SSH Login details&nbsp;<\/li>\n\n\n\n<li>Time zone details<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Procedure:<\/strong><strong><br><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><br><\/strong>Step 1: Log in to the server using SSH<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Step 2: To find the available time zones in the server&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>#ls \/usr\/share\/zoneinfo<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img fetchpriority=\"high\" decoding=\"async\" width=\"602\" height=\"84\" src=\"https:\/\/lh5.googleusercontent.com\/QTl45DaSaHG0ws5GO2btn1DGxRQc70cIrFL_bdaABsTsZTwdD-uCsqof9dtMRI1WVIbQ7loYPK1bIi1h9K1rgU_IU94vcmCgd8TDGwaFCTY0B_ngSvjx2Bc41u2i4N5dtpgHzMUFIJsYVSqdhcQmV-P_t4KtdvF1nViE4EKiPvsAUpfa75vKcegSoqrGew\"><br><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Check the current time on the server&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>#timedatectl<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/lK-opsaNlFikXhaK3Kd8X7gqttUYP32C78u_i5EXIfOVsmK4fX8mwlFE1fiIf9izUfhcC3Kj4SRDNaqqp6JpopobN1TQRD6X3cIFsicgVNU2Al4z4a0Kxp0XedBIqlruhyRAO4Fdojl6FfFGFXOm5dsS8DS6KwTgUD6KGWoqlDilhQcZ65wjkTVuRo5m5A\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3: To set the new timezone in the server&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>#timedatectl set-timezone Asia\/Kolkata&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>To check the change enter the #timedatectl command in step 2.<br><br><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/-KafsfN-vNv7ZwHnnuyoCTgilC8dGJ-oJOH3gU_8yjfO2RdOO_AImUQw04PYp99Zy3GdPtDWVgZnUfkSUC4aIFfWQ4VL6X3pVTyve1XkJ80FXMYkALHKMNtzTesGozG-9AoX4MyLWMTH1uiMulEaYBm-vQIOViuNZJjwZSTilrAITSV_SiraZBdiREpv7g\" width=\"602\" height=\"149\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>The local time is updated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Step 4: To confirm the time change in the server.<br><br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>#date<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" width=\"602\" height=\"95\" src=\"https:\/\/lh5.googleusercontent.com\/f_CZkliDzVCkSUXSEXgCnzZSvhVho9UwhBUjTWksLdlTrhH6nqAk9CzmQAuQGGvT2rELbiiL72JWPsAPgH8uQiMIxdahcA6WezuZrZE0H9w-XeIdInACjuV_oFq6T3euAlgfpSQ1WH6AhZppLPUNdpPn19XKPaUBJTatOYELwsaesaig3uMjmw1KfJrZ4w\"><br><br><strong>Conclusion: <br><br><\/strong>In this section, we have seen updating and changing the time on your Ubuntu server using the command line.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction:In this guide, we will walk you through the process of updating and changing the time on your Ubuntu server [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[274,971],"class_list":["post-7022","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-ubuntu","tag-update-time","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1Pg","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7022"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7022\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}