[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Command date doesnt work fine.
From: |
Pádraig Brady |
Subject: |
Re: Command date doesnt work fine. |
Date: |
Wed, 11 Jul 2007 13:43:09 +0100 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20061116) |
address@hidden wrote:
> Dear sirs,
>
> I am writing to you due to an error encountered in command date in RHEL.
> I have a lot of boxes running RHEL with several versions an date goes wrong o
> well depending on the system's version.
>
> Two examples:
>
> ---------------Case one: wrong result
> Linux lgux11.lg.ehu.es 2.6.9-34.0.1.ELsmp #1 SMP Wed May 17 17:05:24 EDT
> 2006 i686 i686 i386 GNU/Linux
> --------------Case two: good result
> Linux vcux40.vc.ehu.es 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST
> 2007 i686 i686 i386 GNU/Linux
The system date is the cause rather than the system version.
Specifically the difference between EDT and EST.
Add the -u option to date to abstract yourself from this issue.
Pádraig.