From 0e39d72a0bb88c5d3ef1cb99c8afba927bee4696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 8 Apr 2008 17:32:50 +0200 Subject: [PATCH] Fix Datetime convertion in cron --- trytond/ir/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/ir/cron.py b/trytond/ir/cron.py index 1a3f5dda73..9c14f471d8 100644 --- a/trytond/ir/cron.py +++ b/trytond/ir/cron.py @@ -96,7 +96,7 @@ class Cron(OSV, Agent): 'AND nextcall <= now() ' \ 'ORDER BY priority') for job in cursor.dictfetchall(): - nextcall = DateTime.strptime(job['nextcall'], + nextcall = DateTime.strptime(str(job['nextcall']), '%Y-%m-%d %H:%M:%S') numbercall = job['numbercall'] done = False