{"id":2126,"date":"2012-03-29T22:13:49","date_gmt":"2012-03-29T15:13:49","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=2126"},"modified":"2012-03-29T22:13:49","modified_gmt":"2012-03-29T15:13:49","slug":"times-of-trouble","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=2126","title":{"rendered":"times of trouble"},"content":{"rendered":"<blockquote><p>If you falter in times of trouble, how small is your strength!<\/p><\/blockquote>\n<p style=\"text-align: justify;\"><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2012\/03\/cc.png\" rel=\"lightbox[2126]\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-full wp-image-2179\" title=\"cc\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2012\/03\/cc.png\" alt=\"\" width=\"189\" height=\"185\" \/><\/a>Sounds like proverb \ud83d\ude00 but this is actually true if you&#8217;re working with ubuntu or other linux that use UTC by default, especially if you&#8217;re dual boot with winblows and not setting the timezone properly within each OS. Operating systems store and retrieve the time in the hardware clock located on your motherboard BIOS, so that it can keep track of the time even when the system does not have power. Most operating systems (Linux\/Unix\/Mac) store the time on the hardware clock as UTC by default, though some systems (notably winblows) store the time on the hardware clock as the &#8216;local&#8217; time. This causes problems in a dual boot system if both systems view the hardware clock differently.<\/p>\n<p style=\"text-align: justify;\">The reason why unix\/linux using utc by default is that you don&#8217;t need to change the hardware clock when moving between timezones or when Daylight Savings Time (DST) begins or ends as UTC does not have DST or timezone offsets.<\/p>\n<p style=\"text-align: justify;\">Changing Linux to use local time is easier and more reliable than changing winblows to use UTC, so dual-boot Linux\/Winblows systems tend to use local time.<\/p>\n<h3 id=\"Make_Windows_use_UTC\" style=\"text-align: justify;\">Make winblows to use UTC<\/h3>\n<p style=\"text-align: justify;\">Read this somewhere on ubuntu wiki, and write down here as my note :<\/p>\n<p style=\"text-align: justify;\">To make MS Windows calculate the time from the hardware clock as UTC. Create a file named <a title=\"\" href=\"https:\/\/help.ubuntu.com\/community\/UbuntuTime?action=AttachFile&amp;do=view&amp;target=WindowsTimeFixUTC.reg\">WindowsTimeFixUTC.reg<\/a> with the following contents and then double click on it to merge the contents with the registry:<\/p>\n<p style=\"text-align: justify;\">{code}Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation] &#8220;RealTimeIsUniversal&#8221;=dword:00000001{\/code}<\/p>\n<p style=\"text-align: justify;\"><strong>Note:<\/strong> This method was not initially supported on Windows Vista and Server 2008, but came back with Vista SP2, Windows 7 and Server 2008 R2.<\/p>\n<h3 id=\"Make_Linux_use_.27Local.27_time\" style=\"text-align: justify;\">Make Linux to use Localtime<\/h3>\n<p style=\"text-align: justify;\">To tell your ubuntu system that the hardware clock is set to localtime:<\/p>\n<ul>\n<li style=\"text-align: justify;\">edit \/etc\/default\/rcS using your favorite editor, and change <strong>UTC=yes<\/strong> to <strong>UTC=no<\/strong><\/li>\n<li style=\"text-align: justify;\">execute {code}hwclock &#8211;systohc &#8211;localtime{\/code} (this will sync hwclock and date) &#8211; you may check the results of hwclock and date command, it should be the same.<\/li>\n<\/ul>\n<p>At least you have to set clock on winblows os once more time after this, and it should be okay.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you falter in times of trouble, how small is your strength! Sounds like proverb \ud83d\ude00 but this is actually true if you&#8217;re working with ubuntu or other linux that use UTC by default, especially if you&#8217;re dual boot with winblows and not setting the timezone properly within each OS. Operating systems store and retrieve [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2179,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,9,14],"tags":[75,119,240,247],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/2126"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2126"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/2126\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/2179"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}