using the date command



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

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: using the date command
    ... See the -q command line option in the ntpdpage. ... If you want to set the time more accurately using NTP, edit /etc/ntp.conf and add "server pool.ntp.org" to it. ... a big issue but a configuration of software is complaining that the files ... the format string is wrong. ...
    (freebsd-questions)
  • Re: using the date command
    ... To date info about your timezone settings: ... a big issue but a configuration of software is complaining that the ... the format string is wrong. ... ated by php scripts that are supposed to use its date command. ...
    (freebsd-questions)
  • Summary: Changes to mv in upgrade from 5.1 to 5.1b?
    ... Tim was able to duplicate this bug on his own machines testing between 5.1 ... As far as whether this was an intentional change on HP's part or a bug, ... Some of our scripts are now failing with the "mv" command with an error I ...
    (Tru64-UNIX-Managers)
  • Re: send command
    ... xhost table in order to use the tcl "send" command. ... your display to any app you have rights to start. ... machines you need to run X apps on. ...
    (comp.lang.tcl)
  • Re: Cant start OE redux
    ... > informative would be to trace the results of that command on both machines ... > Robert Aldwinckle ... but still no luck. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)