<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1014633" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1014633</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/get-users-local-time#comment-1084526</link>
    <description> &lt;p&gt;try this:&lt;/p&gt;
&lt;p&gt;Using .htaccess, make &quot;get_time.html&quot; your start page.&lt;br /&gt;
Then, use JS to grab the time, and redirect to &quot;index.php?hour=XX&amp;amp;minute=XX&quot;.&lt;br /&gt;
You can now compare the local time to server time.&lt;/p&gt;
&lt;p&gt;I recommend storing that in a session var or cookie, then you can use it as long as they are still on the site without having to pass it through every link.&lt;/p&gt;
&lt;p&gt;I passed hour and minute in my example, becase if the clients clock is off by a few minutes, and they acces your page near the top of the hour... their clock may say 11:58, and your server say 12:02.  I suppose you could even take it to the extreme and say: &quot;What if it&#039;s new years eve, and the client&#039;s clock is 12/31/01 23:58:00 and the server is 01/01/02 01:02:00?&quot;&lt;/p&gt;
 </description>
     <pubDate>Mon, 02 Jul 2001 07:59:34 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1084526 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/get-users-local-time#comment-1084524</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by cds &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;Course that brings up the question, Can I use a JS variable and port it to php? &lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;i don&#039;t know php. but probably with a hidden form-field? just a guess... let me know&lt;/p&gt;
 </description>
     <pubDate>Mon, 02 Jul 2001 07:35:50 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1084524 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/get-users-local-time#comment-1084351</link>
    <description> &lt;p&gt;Was reading an article on PHP Builder and think I have answered my own question. PHP is server side and so never sees the client computer. Thus, would have to use JS to do what I want to do.&lt;/p&gt;
&lt;p&gt;Course that brings up the question, Can I use a JS variable and port it to php?&lt;/p&gt;
 </description>
     <pubDate>Thu, 28 Jun 2001 23:47:14 +0000</pubDate>
 <dc:creator>cds</dc:creator>
 <guid isPermaLink="false">comment 1084351 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
