From: Gustavo A. D. <gus...@gm...> - 2015-08-26 17:07:45
|
Hi, Is there anyway to change for date format on DateCol default value? I use DateCol(default=datetime.strftime(datetime.now(), '%d-%m-%Y') but does not work: unhandled formencode.api.Invalid "expected a date/time string of the '%Y-%m-%d' format in the DateTimeCol 'modified', got <class 'str'> '26-08-2015' instead" Thanks! -- Gustavo A. Díaz GDNet - www.gdnet.com.ar "Servicios TI para tus necesidades" |