<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Linux, UNIX set the time zone on a per user basis</title> <atom:link href="http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: cbt</title><link>http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/#comment-47237</link> <dc:creator>cbt</dc:creator> <pubDate>Fri, 07 May 2010 16:27:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/#comment-47237</guid> <description>If I set TZ for my user, will my user&#039;s crontab run at my new timezone, or the system timezone?</description> <content:encoded><![CDATA[<p>If I set TZ for my user, will my user&#8217;s crontab run at my new timezone, or the system timezone?</p> ]]></content:encoded> </item> <item><title>By: Vasudeva</title><link>http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/#comment-37728</link> <dc:creator>Vasudeva</dc:creator> <pubDate>Thu, 03 Apr 2008 14:04:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/#comment-37728</guid> <description>Awesome Vivek. It works fine for me.</description> <content:encoded><![CDATA[<p>Awesome Vivek. It works fine for me.</p> ]]></content:encoded> </item> <item><title>By: Rai</title><link>http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/#comment-37726</link> <dc:creator>Rai</dc:creator> <pubDate>Thu, 03 Apr 2008 08:16:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/#comment-37726</guid> <description>The above steps don&#039;t seem to work well.
Please check the link http://rai.amalji.com/timecheck.php
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
[root@ rai]# cat timecheck.php
&lt;?php
echo &quot;Present time in (India IST) is : &quot;.date(&quot;d D, M Y - h:i:s A&quot;).&quot;&quot;;
?&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
[root@ rai]# ll .bash
.bash_profile  .bashrc
[root@ rai]# cat .bash*
export TZ=&quot;/usr/share/zoneinfo/Asia/Calcutta&quot;
export TZ=&quot;/usr/share/zoneinfo/Asia/Calcutta&quot;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
Please check the correct time comparisons from :
http://www.amalji.com/time
Fix:
Use php : http://rai.amalji.com/timecheck1.php
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
&lt;?PHP
putenv(&quot;TZ=Asia/Calcutta&quot;);
echo &quot;Present time in (India IST) is : &quot;.date(&quot;d D, M Y - h:i:s A&quot;).&quot;&quot;;
?&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
I&#039;d appreciate if you let me know what was wrong. :-)
Rai</description> <content:encoded><![CDATA[<p>The above steps don&#8217;t seem to work well.</p><p>Please check the link <a
href="http://rai.amalji.com/timecheck.php" rel="nofollow">http://rai.amalji.com/timecheck.php</a></p><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`<br
/> [root@ rai]# cat timecheck.php<br
/> &lt;?php</p><p>echo &#8220;Present time in (India IST) is : &#8220;.date(&#8220;d D, M Y &#8211; h:i:s A&#8221;).&#8221;";<br
/> ?&gt;<br
/> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`<br
/> [root@ rai]# ll .bash<br
/> .bash_profile  .bashrc</p><p>[root@ rai]# cat .bash*<br
/> export TZ=&#8221;/usr/share/zoneinfo/Asia/Calcutta&#8221;<br
/> export TZ=&#8221;/usr/share/zoneinfo/Asia/Calcutta&#8221;<br
/> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`</p><p>Please check the correct time comparisons from :<br
/> <a
href="http://www.amalji.com/time" rel="nofollow">http://www.amalji.com/time</a></p><p>Fix:</p><p>Use php : <a
href="http://rai.amalji.com/timecheck1.php" rel="nofollow">http://rai.amalji.com/timecheck1.php</a><br
/> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`<br
/> &lt;?PHP</p><p>putenv(&#8220;TZ=Asia/Calcutta&#8221;);<br
/> echo &#8220;Present time in (India IST) is : &#8220;.date(&#8220;d D, M Y &#8211; h:i:s A&#8221;).&#8221;";<br
/> ?&gt;<br
/> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`</p><p>I&#8217;d appreciate if you let me know what was wrong. :-)</p><p>Rai</p> ]]></content:encoded> </item> </channel> </rss>
