[Zope] "The strange DateTime"

Lennart Regebro lennart@regebro.nu
Thu, 30 Jan 2003 10:39:45 +0100


> Yes, that's not a valid DateTime.
> The funny thing is that I don't get any error message.

Well, it tries to find the date, and it can't find a date, and therefore it
assumes that it's todays date. If it didn't, things like DateTime("11:30")
wouldn't work. You would have to somehow add checks that says "Hey, this
piece of string isn't a valid anything" and that's not done today.