[Zope] ZopeTime inconsistency.

Chad Streck chads@adci.com
Wed, 22 Mar 2000 22:08:32 GMT


--------------=_4D4800F5689C08491020
Content-Description: filename="text1.txt"
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yes, I'm a zope newbie, but could someone enlighten me on the=20
following senario.

I use the following dtml to get a date time field....

<dtml-var ZopeTime>
<input type=3D'hidden' name=3D'dateposted' value=3D'<dtml-var ZopeTime=20
fmt=3D"%Y%m%d%H%M%S">' size=3D14>

... and it produces the following html source....

2000/03/22 15:34:29.4534 Us/Central
<input type=3D'hidden' name=3D'dateposted' value=3D'20000322213429' size=
=3D14>

As you can see, the plain ZopeTime products the proper out put of 3:34=20
(15:34) where the formated one to bring it down to what I want to=20
store in the system is showing 9:34 (2134) which is the time zone=20
offset of the time zone I am in (CST6CDT).  Has anyone seen this=20
before or is there a known cause/fix?  I looked on the zope site and=20
the archives for this list, but didn't find anything on it.  I saw a=20
lot of hits on Google for ZopeTime about not returning proper values=20
and other 'weirdness'.

Any help would be appreciated.

chad



--------------=_4D4800F5689C08491020
Content-Description: filename="text1.html"
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
	<TITLE>ZopeTime inconsistency.</TITLE>
	<META NAME=3D"GENERATOR" CONTENT=3D"StarOffice/5.1 (Linux)">
	<META NAME=3D"CREATED" CONTENT=3D"20000322;15441300">
	<META NAME=3D"CHANGEDBY" CONTENT=3D"Chad Streck">
	<META NAME=3D"CHANGED" CONTENT=3D"20000322;16083100">
</HEAD>
<BODY>
<P STYLE=3D"margin-bottom: 0in">Yes, I'm a zope newbie, but could someon=
e
enlighten me on the following senario.</P>
<P STYLE=3D"margin-bottom: 0in"><BR>
</P>
<P STYLE=3D"margin-bottom: 0in">I use the following dtml to get a date
time field....</P>
<P STYLE=3D"margin-bottom: 0in"><BR>
</P>
<P STYLE=3D"margin-left: 0.5in; margin-bottom: 0in">&lt;dtml-var
ZopeTime&gt;</P>
<P STYLE=3D"margin-left: 0.5in; margin-bottom: 0in">&lt;input
type=3D'hidden' name=3D'dateposted' value=3D'&lt;dtml-var ZopeTime
fmt=3D&quot;%Y%m%d%H%M%S&quot;&gt;' size=3D14&gt;</P>
<P STYLE=3D"margin-bottom: 0in"><BR>
</P>
<P STYLE=3D"margin-bottom: 0in">... and it produces the following html
source....</P>
<P STYLE=3D"margin-bottom: 0in"><BR>
</P>
<P STYLE=3D"margin-left: 0.5in; margin-bottom: 0in">2000/03/22
15:34:29.4534 Us/Central</P>
<P STYLE=3D"margin-left: 0.5in; margin-bottom: 0in">&lt;input
type=3D'hidden' name=3D'dateposted' value=3D'20000322213429' size=3D14&g=
t;</P>
<P STYLE=3D"margin-bottom: 0in"><BR>
</P>
<P STYLE=3D"margin-bottom: 0in">As you can see, the plain ZopeTime
products the proper out put of 3:34 (15:34) where the formated one to
bring it down to what I want to store in the system is showing 9:34
(2134) which is the time zone offset of the time zone I am in
(CST6CDT).  Has anyone seen this before or is there a known cause/fix?=20
I looked on the zope site and the archives for this list, but didn't
find anything on it.  I saw a lot of hits on Google for ZopeTime about
not returning proper values and other 'weirdness'.</P>
<P STYLE=3D"margin-bottom: 0in"><BR>
</P>
<P STYLE=3D"margin-bottom: 0in">Any help would be appreciated.</P>
<P STYLE=3D"margin-bottom: 0in"><BR>
</P>
<P STYLE=3D"margin-bottom: 0in">chad</P>
<P STYLE=3D"margin-bottom: 0in"><BR>
</P>
</BODY>
</HTML>

--------------=_4D4800F5689C08491020--