<?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>The Linux Noob &#187; time</title>
	<atom:link href="http://thelinuxnoob.com/tag/time/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxnoob.com</link>
	<description>Fixin&#039; issues one ticket at a time</description>
	<lastBuildDate>Tue, 19 Jul 2011 12:43:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Server time keeps resetting</title>
		<link>http://thelinuxnoob.com/linux/server-time-keeps-resetting/</link>
		<comments>http://thelinuxnoob.com/linux/server-time-keeps-resetting/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 02:32:48 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://69.10.59.80/~thelinux/?p=11</guid>
		<description><![CDATA[Last night I came across a ticket where a customers time kept resetting on their dedicated server. Typically I would fix the time by using the date command because most of issues I came across the servers were only minutes off. After reading through the clients ticket history I realized that the timezone and minutes [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I came across a ticket where a customers time kept resetting on their dedicated server. Typically I would fix the time by using the date command because most of issues I came across the servers were only minutes off. After reading through the clients ticket history I realized that the timezone and minutes were correct, but the hour was still off. After a nice little google search I came across a post on a popular linux forum, where a member had the same issue the client was having. In the post a member suggested creating a symlink for /etc/localtime to point to the clients timezone in the /usr/share/zoneinfo folder. I figured it was worth a shot and tried this fix out, and it worked perfectly <img class="wp-smiley" src="http://thelinuxnoob.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
<p>Since the client was located in Pakistan, he needed the server to be set to the Asai/Karachi time zone.</p>
<blockquote><p>root@server [/]# ln -sf /usr/share/zoneinfo/Asia/Karachi /etc/localtime</p></blockquote>
<p>Before the symlink the time showed in EST but listed the timezone as GMT +5</p>
<blockquote><p>root@server[/]# date<br />
Mon Jan 26 02:46:24 GMT+5 2009<br />
root@server[/]#</p></blockquote>
<p>After the symlink the time showed in Asia/Karachi (or GMT +5)</p>
<blockquote><p>root@server [/]# date<br />
Mon Jan 26 12:48:14 PKT 2009<br />
root@server[/]#</p></blockquote>
<p>Your localtime file should look like this now:</p>
<blockquote><p>lrwxrwxrwx  1 root   root       32 Jan 26 12:47 localtime -&gt; /usr/share/zoneinfo/Asia/Karachi</p></blockquote>
<p>I’m not entirely sure why the date wasn’t correct to begin with as the timezone was correct (+5GMT) when checking with the date command. But, things are fixed now so I really can’t complain since the customer is happy <img class="wp-smiley" src="http://thelinuxnoob.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/server-time-keeps-resetting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

