From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26429 invoked from network); 8 Dec 1999 02:43:48 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Dec 1999 02:43:48 -0000 Received: from talisman.mv.com (root@talisman.mv.com [207.22.43.150]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA20906 for ; Tue, 7 Dec 1999 21:43:42 -0500 Received: from localhost (rdp@localhost [127.0.0.1]) by talisman.mv.com (8.8.7/8.8.7) with ESMTP id VAA03386; Tue, 7 Dec 1999 21:43:32 -0500 Date: Tue, 7 Dec 1999 21:43:32 -0500 (EST) From: Rich Payne X-Sender: rdp@talisman.mv.com To: axp-software@lists.alphalinux.org cc: axp-list@redhat.com Subject: MySQL and NOW() Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Is anybody using the NOW() function within MySQL for DATETIME fields? I've run into something a little strange. If, at the mysql command line I enter "select NOW();" mysql returns the current date and time. Howver if I embed that in a query: insert into table (insert_date) values (NOW()); I end up with very strange dates, usually something like: 0000-00-00 00:01:33 and the system time is set correctly. Any ideas? I could set all this manually, but the NOW() funtion seems so much easier! Rich Payne rpayne@alphalinux.org www.alphalinux.org