Eric,

Hmm. This might be a locale issue, but I didn't think Zope used locale to define the DateTime format. Try this:

   $ PYTHONPATH=$ZENHOME/lib/python python
   >>> import Globals, DateTime
   >>> DateTime.DateTime('06/27/2006', datefmt='us')
   >>> DateTime.DateTime('06/27/2006')

If the last line fails, I'm going to have to try and figure out how you got Zope to use international formats for DateTime.

-Eric 'I want everyone to use UTC and ISO dates' Newton

------
2006-06-27T14:27:02 ERROR zen.Events Failure querying events
Traceback (most recent call last):
File "/usr/local/Zope-2.8.6-final/Products/ZenEvents/EventManagerBase.py", line 251, in getEventList
    startdate, enddate = self._setupDateRange(startdate, enddate)
File "/usr/local/Zope-2.8.6-final/Products/ZenEvents/EventManagerBase.py", line 671, in _setupDateRange
    enddate = DateTime.DateTime(enddate)
File "/usr/local/zenoss/lib/python/DateTime/DateTime.py", line 509, in __init__
    return self._parse_args(*args, **kw)
File "/usr/local/zenoss/lib/python/DateTime/DateTime.py", line 737, in _parse_args
    yr,mo,dy,hr,mn,sc,tz=self._parse(arg, datefmt)
File "/usr/local/zenoss/lib/python/DateTime/DateTime.py", line 1095, in _parse
    raise DateError, st
DateError: 06/27/2006

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to