Submitted by : simon at: 2003-10-26T21:31:37+00:00 (17 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

From GeneralDiscussion:

I've just upgraded my ZWiki to 0.10.0 and get the following error when trying to open a Zwiki page; Error Type: Invalid Date-Time String Error Value: 2002/06/15 17:11 Central Standard Time ... the complete traceback is :

 Traceback (innermost last):
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\, line 150, in publish_module
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\, line 114, in publish
  File C:\PROGRA~1\Zope\lib\python\Zope\, line 159, in zpublisher_exception_hook
    (Object: wiki)
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\, line 98, in publish
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\, line 88, in mapply
    (Object: KentT)
  File C:\PROGRA~1\Zope\lib\python\ZPublisher\, line 39, in call_object
    (Object: KentT)
  File C:\Program Files\Zope\lib\python\Products\ZWiki\, line 150, in __call__
    (Object: KentT)
  File C:\Program Files\Zope\lib\python\Products\ZWiki\, line 2962, in upgrade
    (Object: KentT)
  File C:\PROGRA~1\Zope\lib\python\DateTime\, line 651, in __init__
  File C:\PROGRA~1\Zope\lib\python\DateTime\, line 937, in _parse
 Invalid Date-Time String: (see above)

Some of your page creation_time and last_edit_time properties contain timezones in a format which zwiki does not recognize. View your page/manage_propertiesForm to see what they contain. To fix them, install this external method in your wiki folder or above and visit the example url in the docstring, replacing "Central Standard Time" and "CST" as appropriate.

We don't know how widespread this is - if you run into it, please leave a comment here.

DeanGoodmanson, 2002/09/12 21:18 GMT (via web):

DeansUpgrade? ran into this...working on figure out how to install the external method.

Simon, 2002/09/12 22:22 GMT (via web):
From memory - put (from the above link) in the Extensions directory in your main zope directory (your INSTANCE_HOME or the top-level zope directory). If there isn't an Extensions directory, create one. Restart zope. In (eg) your top-level folder add an External method. For the id, module and method enter fixprops (possibly for the module).

WimBekker, 2002/09/17 07:58 GMT (via web):
I've got this problem. After installing fixprops and running the url, I get TypeError?, fixprops() takes exactly 4 arguments (0 given)? What's wrong?

DeanGoodmanson, 2002/09/17 14:48 GMT (via web):
ID:, Module Name: fixprops , Function Name: fixprops

The function worked fine for me, I cut/pasted it from these arguments: ?properties:list=creation_time&properties:list=last_edit_time&old=Central Standard Time&new=CST

My problems may not have been related to this. More at DeansUpgrade?.

2002/09/19 06:22 GMT (via web):
I've got this on an Australian server, the pre-upgrade format looks like 2002/06/11 10:07 AUS Eastern Standard Time

2002/09/19 06:31 GMT (via web):
More on that Australian server... change the AUS Eastern Standard Time bit to AEST and the pages will work.

Simon, 2002/09/25 02:01 GMT (via web):
This error was happening when zwiki tried to use DateTime? to convert old timestamps to ISO format. 0.11 will leave the timestamps unchanged if it can't convert them; the lastEditTime/creationTime methods will return None while this situation persists. last_edit_time will get fixed up by the next edit; creation_time never will, unless you run the fixprops script above.