date command

2010-03-05 Thread Bernd Fehling
Hi all,

while using the date command (date GNU coreutils 5.93)
it reports e.g.:
Fri Mar  5 13:01:52 UCT 2010

So why is it reporting UCT and not UTC ???
Is that a typo?

Regards
Bernd








Re: date command

2010-03-05 Thread Bernd Fehling
Hi Erik,

there is no TZ set.

# date
Fr Mär  5 13:59:12 UCT 2010

# date -u
Fr Mär  5 13:59:18 UTC 2010

Lets see...
OK, yes you are right its a typo in SuSe system setting:
SUSE LINUX 10.1 (X86-64)
tail /etc/sysconfig/clock

## Type:string(Europe/Berlin,Europe/London,Europe/Paris)
## ServiceRestart:  boot.clock
#
# Timezone (e.g. CET)
# (this will set /usr/lib/zoneinfo/localtime)
#
TIMEZONE="UCT"
DEFAULT_TIMEZONE="Europe/Berlin"


Thanks a lot for your help.

Regards
Bernd


Eric Blake schrieb:
> According to Bernd Fehling on 3/5/2010 6:04 AM:
>> Hi all,
>>
>> while using the date command (date GNU coreutils 5.93)
>> it reports e.g.:
>> Fri Mar  5 13:01:52 UCT 2010
>>
>> So why is it reporting UCT and not UTC ???
>> Is that a typo?
> 
> Most likely, it is being inherited from $TZ in the environment:
> 
> $ TZ=UTC date
> Fri Mar  5 13:45:10 UTC 2010
> $ TZ=UCT date
> Fri Mar  5 13:45:13 UCT 2010
> 
> If it is a typo in your environment, then check your configuration files
> (such as ~/.bashrc...) for who might have been setting it wrongly in the
> first place.
>