<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fadvisor.net/blog &#187; Linux</title>
	<atom:link href="http://fadvisor.net/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://fadvisor.net/blog</link>
	<description>Fahad Alduraibi Blog</description>
	<lastBuildDate>Fri, 16 Jul 2010 19:17:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fedora 9 and UTC time problem</title>
		<link>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/</link>
		<comments>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 19:31:01 +0000</pubDate>
		<dc:creator>Fahad Alduraibi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Localtime]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">http://fadvisor.net/blog/?p=6</guid>
		<description><![CDATA[Fedora 9 was released I installed it on my laptop next to the pre-installed Fedora 8 and Windows XP. There are some issues with the release, like nVidia drivers, but I was expecting such things. However, there was one small problem that didn&#8217;t make since at first which is the time settings. Whenever I change [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Fedora 9 was released I installed it on my laptop next to the pre-installed Fedora 8 and Windows XP. There are some issues with the release, like nVidia drivers, but I was expecting such things. However, there was one small problem that didn&#8217;t make since at first which is the time settings.</p>
<p style="text-align: justify;">Whenever I change from Fedora 8 or Windows XP to the new Fedora 9  or vice versa the time of my machine will change, it will go backward or forward with a fixed offset, and I knew it is a problem with timezone. So before I explain the problem I would like to mention that each machine has a clock that works even if the machine is turned off, using a battery that is connected to the motherboard, and when the operating system boots it will read the time from that clock.<span id="more-6"></span></p>
<p style="text-align: justify;">For Windows OS, the time that is shown to you in the taskbar is the same time of the hardware clock, and when you change your time in Windows, it will update the hardware clock to reflect the same change. So let say that you are in a city with timezone &#8221; -6 &#8221; and Windows is set to that zone, then the hardware clock will have the time of that zone also. However, Unix, and Unix compatible OS like Linux, assumes the hardware clock to be set to the UTC &#8220;coordinated universal time&#8221; (which is also called GMT) and it will calculate the local time based on the selected timezone (by adding the offset to the time).</p>
<p style="text-align: justify;">If you have a system with dual boot Windows and Linux you will have this problem, but lucky we are that Linux has the option to assume the hardware clock to be the local-time instead of UTC and it will ack like Windows and that will solve the problem.</p>
<p style="text-align: justify;">So after remembering all of that I tried to loacate this option under my Feroa 9 which tells it to treat the machine clock as a local-time instead of UTC, but I could not find it any where, and after some digging I discovered that since I installed KDE4 only with my new installation, the tool that allows this is based on Gnome desktop and it is called &#8220;system-config-time&#8221;. <em>But I am still wondering why KDE4 does not have a GUI for that!! even in the older version!!</em></p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/kde4-time-control.png"><img class="size-medium wp-image-7" title="kde4-time-control" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/kde4-time-control-272x300.png" alt="The time/date control under KDE 4 and it has no option to tell it if the machine clock is set to local-time or UTC" width="272" height="300" /></a></p>
<p style="text-align: justify;">So I installed this tool and I found that the option for UTC time is checked and I have to uncheck it to resolve the problem.</p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/system-config-time.png"><img class="size-medium wp-image-8" title="system-config-time" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/system-config-time-291x300.png" alt="Date/Time control under Gnome and it has the option to say the hardware (System) clock is using UTC or local-time" width="291" height="300" /></a></p>
<p style="text-align: justify;">Unfortunately it did not work and it gave me an error message after I clicked the OK button and it did not change the settings:</p>
<p><code><br />
File "/usr/lib/python2.5/shutil.py", line 41, in copyfile<br />
raise Error, "`%s` and `%s` are the same file" % (src, dst)<br />
shutil.Error: `/usr/share/zoneinfo/America/Chicago` and `/etc/localtime` are the same file<br />
</code></p>
<p style="text-align: justify;">Finally after more google search I found this command line program &#8220;timeconfig&#8221; (which is text version of the system-config-date) which I used to successfully change the way Linux uses the time stored in my machine.</p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/timeconfig.png"><img class="size-medium wp-image-9" title="timeconfig" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/timeconfig-300x216.png" alt="A command line application that allowed me to set the right time configuration" width="300" height="216" /></a></p>
<p style="text-align: justify;">From my understanding, both tools the GUI &#8220;system-config-date&#8221; and the text based &#8220;timeconfig&#8221; are developed by Redhat, and since they use Gnome as their default destop management they tend to build their tools based on that. However, I like KDE more since it provides me with things that Gnome can&#8217;t. So do I have to suffer for that?</p>
<p style="text-align: justify;">Is this Redhat problem or KDE should develope all of these things?</p>
<p style="text-align: justify;">Any way, I am happy now that my problem is fixed, but I hope the option will be available in KDE 4.1.</p>
]]></content:encoded>
			<wfw:commentRss>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
