[Zope] Further info about ZopeTime() not returning correct values

Alexandre Ratti alex@gabuzomeu.net
Fri, 14 Jan 2000 14:48:39 +0100


Hello Bill,


Try this:

<dtml-with ZopeTime>
    <dtml-var "'%s/%s/%i - %s' % (dd(), mm(), year(),
      TimeMinutes())">
</dtml-with>

If this code returns the correct time, see this document:

<http://www.zope.org/Members/AlexR/CustomDateFormats>

C-style time formats such as %b are GMT-based. This may be the problem, 
though I'm not sure.


Alexandre


At 12:00 13/01/2000 -0800, you wrote:
>Date: Thu, 13 Jan 2000 12:49:21 -0700
>From: Bill Anderson <banderson@boi.hp.com>
>Organization: Alternative Resources
>To: zope@zope.org
>Subject: [Zope] Further info about ZopeTime() not returning correct values
>
>OK, after trying some other things out, I have some updated information.
>
><dtml-var "ZopeTime()">
>
>OR
>
><dtml-with ZopeTime>
>         <dtml-var fCommonZ>
></dtml-with>
>
>Returns the correct information.
>
>However, on the same page
><dtml-var "ZopeTime()" fmt="%b %d %Y %I:%M:%S%p">
>Returns time-5hours.
>
>Further investigation has revealed that when it is 5 hours behind, it
>indicates a timezone of "MST", yet when the correct time is show, it
>shows "US/Mountain".
>
>While it appears i can get a workaround to the correct date, something
>still seems amiss here...
>
>--
>Bill Anderson                   Linux/Unix Administrator, Security Analyst
>ESBU (ARC)                      bill_anderson@boi.hp.com
>My opinions are just that; _my_ opinions.