<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>Time Zones | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/</link>
  <description>A Server Side forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>10/03/04, 277 01 2004 2004:%i:1096808475 09:01:15</pubDate>
  <lastBuildDate>06/07/13, 158 08 2013 2013:%i:1370592517 04:08:37</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Dave_smith  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1392</link>
    <description><![CDATA[I am living in Trinidad but my server is based in the UK - a time zone about 5 hours different from mine.<br /><br />When I use SSI to indicate &quot;this page was last updated on ....&quot; I obviously get the time and date of the server on not my local time.<br /><br />I can't find - despite many Google searches - how to change this time zone. Any advice please?<br /><br />Thanks.<br /><br />Dave ]]></description>
    <pubDate>10/03/04, 277 01 2004 2004:%i:1096808475 09:01:15</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1392</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1393</link>
    <description><![CDATA[Well, you can't change the timezone of your server so you have to add the five hours on your page. Just pass the server time to this simple JavaScript function and it will add five hours (or whatever).<br /><br />function makeLocal(serverTime)<br /> &nbsp; &nbsp;{<br /> &nbsp; &nbsp;var hoursOffset = 5;<br /> &nbsp; &nbsp;localTime = new Date();<br /> &nbsp; &nbsp;localTime.setHours(localTime.getHours()+hoursOffset);<br /> &nbsp; &nbsp;return localTime;<br /> &nbsp; &nbsp;}<br /><br />I trust that you know how to call this from your SSI.]]></description>
    <pubDate>10/03/04, 277 31 2004 2004:%i:1096810263 09:31:03</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1393</guid>
   </item>
     <item>
    <title>Dave_smith  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1394</link>
    <description><![CDATA[You could save me some research by dropping a few hints on how to call this script from my SSI. &nbsp;<img src="/images/emoticons/smile.png" class="smiley" />]]></description>
    <pubDate>10/03/04, 277 42 2004 2004:%i:1096814537 10:42:17</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1394</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1395</link>
    <description><![CDATA[I'd need to see the SSI to be certain. Are you inserting something like #localtime# &nbsp;and not just #time# or #gmtime# ?<br /><br />Make a JavaScript section in the head of the page, insert the function and replace #localtime# with javascript:makeLocal(#localtime#)<br /><br />That's the principle but I have no way to test this myself.<br />]]></description>
    <pubDate>10/03/04, 277 56 2004 2004:%i:1096818970 11:56:10</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1395</guid>
   </item>
     <item>
    <title>Dave_smith  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1396</link>
    <description><![CDATA[That's fine thanks. I can take if from there.]]></description>
    <pubDate>10/03/04, 277 32 2004 2004:%i:1096821124 12:32:04</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/server_side/time_zones/#p1396</guid>
   </item>
   </channel>
</rss