From owner-freebsd-questions@FreeBSD.ORG Sun Sep 30 03:32:59 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29C6F16A420 for ; Sun, 30 Sep 2007 03:32:59 +0000 (UTC) (envelope-from jekillen@prodigy.net) Received: from smtp114.sbc.mail.mud.yahoo.com (smtp114.sbc.mail.mud.yahoo.com [68.142.198.213]) by mx1.freebsd.org (Postfix) with SMTP id D6C0013C45A for ; Sun, 30 Sep 2007 03:32:58 +0000 (UTC) (envelope-from jekillen@prodigy.net) Received: (qmail 4621 invoked from network); 30 Sep 2007 03:32:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=prodigy.net; h=Received:X-YMail-OSG:Mime-Version:Content-Transfer-Encoding:Message-Id:Content-Type:To:From:Subject:Date:X-Mailer; b=UqdMGvfiWd+neUKDp/u5IT9cDHpk0++94buqqK7KZBozXkSUMppWa9MsGyJ7llsYd7hl0xqpmzSr+N3h7doFU1CGvAAl+LDLYMJCrSL34k4xtkdFIT13rlmNo9oFp0oGZtg5VkE7UYGydFzew9Q0+7+K+qdGKcYSBhlkrp+LGqM= ; Received: from unknown (HELO ?75.7.236.228?) (jekillen@prodigy.net@75.7.236.228 with plain) by smtp114.sbc.mail.mud.yahoo.com with SMTP; 30 Sep 2007 03:32:57 -0000 X-YMail-OSG: kVWrzeMVM1mRjIzniEbd7YbDnfS006e0KH0xmXbQtL14kdukjOgrdOoN9aQVybyaVlG6xUI7hg-- Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-Id: <5e433b6210a52ae0220ae0a20d0353e1@prodigy.net> Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD Mailing List From: jekillen Date: Sat, 29 Sep 2007 20:33:35 -0700 X-Mailer: Apple Mail (2.622) Subject: using the date command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2007 03:32:59 -0000 Hello all; I have built 4 machines and installed FreeBSD 6.0 in one and 6.2 in the other three. They are all using the wrong date and time. The last one (v6.2 on ecs mb with AMD64) is the worst. It is telling me today is Jan 3 2003 PST (I am on the west coast and it is still PDT). These machines are all web servers. So up until now this has not been a big issue but a configuration of software is complaining that the files it creates have an older date than the files in the software bundle, it is time to do something about it. So I am looking at man date and as I interpret the instructions #date ccyymmddHHMM.ss (20079282027.00 or 200709282027.00 for instance) is supposed to set the clock to the current date. But when I run a command with the current date and time in the above format I get the complaint that the format string is wrong. Can anyone be kind enough to give me a quick tutorial on this? I will be looking seriously into using NTP, but for now I need to get the date straight. I have entries in apache error log gener ated by php scripts that are supposed to use its date command. Thanks in advance for assistance. Jeff K