Other people can probably tell you how to do this better, but I'd use
python's datetime module and try something like this when you save a
user:

now = datetime.datetime.today
YourModel(date=now,name=name,etc.)

A while back, I tinkered with these things and resorted to a simple
StringCol for my dates, with strformatted datetime values.  That's
another option, but certainly less elegant.  Mine needed the strings
because my dates were not coming from datetime, they were being parsed
out of jpeg EXIF data, and hence didn't fit as date data.

Good luck.
Mike


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to