Ah-ha... that would make sense. Is there a way to display it without stripping the timezone information or at least add another time preset? <br><br>
<div class="gmail_quote">On Wed, Dec 23, 2009 at 11:30 AM, Andrew Milton <span dir="ltr">&lt;<a href="mailto:akm@theinternet.com.au">akm@theinternet.com.au</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">+-------[ Justin Dunsworth ]----------------------<br>
<div class="im">| I am having difficulties with time zones and rendering proper times/dates. My<br>| time zone is GMT-6 (CST)... mysql reports the proper time/date, running<br>| &lt;dtml-var expr=&quot;e.strftime(&#39;%c&#39;)&quot;&gt; shows Zope has the right date, running a<br>

| query straight from the SQLMethod shows the proper time in relation to the<br>| field in mysql. However, when I try and run the variable in the dtml document<br>| it gives the time in GMT+0.<br></div>| Â<br>| For example... in mysql I have &quot;2009-12-23 10:41:06&quot; as the date of<br>

| the record. Running the SQL Method returns it as &#39;2009/12/23 10:41:06 GMT+0&#39;<br>
<div class="im">| -- So far so good but when I run &lt;dtml-var comment_date fmt=&quot;%m-%d-%y %H:%M&quot;&gt;<br>| in my document it gives: 12-23-09 04:41.<br></div>| Â<br>
<div class="im">| I can get fmt=ISO (and other similar time functions) working and showing the<br>| proper date/time but I&#39;d rather have a little more control over how the time is<br></div>| displayed. Is there any suggestions on what to do? I&#39;ve looked many places and<br>


<div class="im">| couldn&#39;t find the answer.<br></div>| Â<br>
<div class="im">| I am running Zope 2.11.4-final, python 2.4.4, win32<br></div>| Â<br><br>using fmt / strftime on Zope DateTime strips the timezone info and<br>converts to localzone before rendering, which is why your times are out<br>

by 6 hours... your distance from GMT.<br><font color="#888888"><br>--<br>Andrew Milton<br><a href="mailto:akm@theinternet.com.au">akm@theinternet.com.au</a><br></font></blockquote></div><br>