From a267a089de90a7215815447e155ad5abd2615152 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 1 Dec 2006 13:14:49 +0000 Subject: [PATCH] ebl fix bad SQL timestamp in M_CATALOG git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3724 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 9394988874..9b0f3069e5 100755 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -644,7 +644,7 @@ void dispatch_message(JCR *jcr, int type, time_t mtime, char *msg) esc_msg = check_pool_memory_size(esc_msg, len*2+1); p_sql_escape(esc_msg, msg, len); - bstrftimes(dt, sizeof(dt), mtime); + bstrutime(dt, sizeof(dt), mtime); Mmsg(cmd, "INSERT INTO Log (JobId, Time, LogText) VALUES (%s,'%s','%s')", edit_int64(jcr->JobId, ed1), dt, esc_msg); p_sql_query(jcr, cmd); -- 2.39.5