{"id":794,"date":"2021-10-08T04:58:50","date_gmt":"2021-10-07T22:58:50","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=794"},"modified":"2021-10-08T06:43:04","modified_gmt":"2021-10-08T00:43:04","slug":"how-to-set-timezone-in-lxc-lxd-container-centos-7","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-set-timezone-in-lxc-lxd-container-centos-7.html","title":{"rendered":"How to Set Timezone in LXC\/LXD container CentOS 7"},"content":{"rendered":"\n<p>LXC should take the UTC as the default timezone for the guest. To set a custom timezone, you need to manually run this:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ln -sf \/usr\/share\/zoneinfo\/Asia\/Dhaka \/etc\/localtime<\/pre>\n\n\n\n<p>In our case, we set the Asia\/Dhaka as the default timezone. For Ubuntu based systems, you may use &#8216;tzdata&#8217; package. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>LXC should take the UTC as the default timezone for the guest. To set a custom timezone, you need to manually run this: In our case, we set the Asia\/Dhaka as the default timezone. For Ubuntu based systems, you may use &#8216;tzdata&#8217; package.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[587,423],"tags":[594,591,232],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/794"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=794"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/794\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/794\/revisions\/795"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}