Re: What's the difference about ZopeTime() and DateTime() ?
I can use ZopeTime() in Zope 2.5.1 linux version, but it will give me problem in Zope 2.5.1 win32 version. I try to use DateTime, but got error message eeither. The difference is that ZopeTime() gives you the time on the server, while DateTime() gives you the time of the client machine. So, if your server is in the USA and you are, let's say in Japan, ZopeTime() will give you the time in the USA while DateTime() will give you the time in Japan.
To know exactly your problem, you have to post some tracebacks. Regards, Josef
--On Freitag, 11. Juli 2003 10:34 Uhr +0200 Josef Meile <jmeile@hotmail.com> wrote:
I can use ZopeTime() in Zope 2.5.1 linux version, but it will give me problem in Zope 2.5.1 win32 version. I try to use DateTime, but got error message eeither. The difference is that ZopeTime() gives you the time on the server, while DateTime() gives you the time of the client machine. So, if your server is in the USA and you are, let's say in Japan, ZopeTime() will give you the time in the USA while DateTime() will give you the time in Japan.
That's nonsense...both should return the same. -aj
That's nonsense...both should return the same. Yes, sorry my mistake. But some time ago, when I used 2.3.3, it didn't return the same value. That's why I always use ZopeTime() and I got this confusion.
--On Freitag, 11. Juli 2003 11:21 Uhr +0200 Josef Meile <jmeile@hotmail.com> wrote:
That's nonsense...both should return the same. Yes, sorry my mistake. But some time ago, when I used 2.3.3, it didn't return the same value. That's why I always use ZopeTime() and I got this confusion.
The assumption that Zope knows about the client time is wrong. There is no way for Zope to determine the time of the client except the client would its local time with the HTTP request. -aj
participants (2)
-
Andreas Jung -
Josef Meile