PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > localtime and UTC
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

localtime and UTC

Réponse
 
LinkBack Outils de la discussion
Vieux 04/04/2008, 05h50   #1
Rage Callao
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut localtime and UTC

Hi,

I just installed Lenny Beta 1 and everything installs nicely. However,
my system time and hwclock are swapped.

The output of date is:
Fri Apr 4 20:40:29 PHT 2008 (should be 12:40:29)

The output of date -u is:
Fri Apr 4 12:41:28 UTC 2008

My /etc/default/rcS is set to:
UTC=no

/etc/timezone is set to:
Asia/Manila

My machine's BIOS clock is set to localtime.

Thanks for any .

--
Rage Callao
Free Software :: empower :: educate


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 04/04/2008, 08h20   #2
Jeff D
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localtime and UTC

On Fri, 4 Apr 2008, Rage Callao wrote:

> Hi,
>
> I just installed Lenny Beta 1 and everything installs nicely. However,
> my system time and hwclock are swapped.
>
> The output of date is:
> Fri Apr 4 20:40:29 PHT 2008 (should be 12:40:29)
>
> The output of date -u is:
> Fri Apr 4 12:41:28 UTC 2008
>
> My /etc/default/rcS is set to:
> UTC=no
>
> /etc/timezone is set to:
> Asia/Manila
>
> My machine's BIOS clock is set to localtime.
>
> Thanks for any .
>
>


if you have the ntpdate package installed as run 'ntpdate pool.ntp.org'
and it should set your clock to the proper time.

hth,
jeff

--
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 04/04/2008, 08h30   #3
Luca Sighinolfi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localtime and UTC

On Fri, 4 Apr 2008 12:44:53 +0800
"Rage Callao" <rage.callao@gmail.com> wrote:

> Hi,


Hi

> I just installed Lenny Beta 1 and everything installs nicely. However,
> my system time and hwclock are swapped.


Well, I think this is normal if you have set a time zone!

> The output of date is:
> Fri Apr 4 20:40:29 PHT 2008 (should be 12:40:29)


You can select the right time zone (or none) with "tzselect".
Then, set the hardware clock using "hwclock --systohc".

Another tool could be usefull to set up the date: rdate

man hwclock
man rdate

> Thanks for any .

I hope this

Bye
--
Luca Sighinolfi


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 04/04/2008, 10h50   #4
Rage Callao
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localtime and UTC

Many thanks for replying

On Fri, Apr 4, 2008 at 3:11 PM, Jeff D <fixedored@gmail.com> wrote:
> if you have the ntpdate package installed as run 'ntpdate pool.ntp.org'
> and it should set your clock to the proper time.


I installed Lenny on a machine that has no network access so I was
hoping that ntpdate would not be necessary. Etch works fine though and
the clock is set properly.

Could this possibly be a bug in the installer for Lenny?

--
Rage Callao
Free Software :: empower :: educate


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 04/04/2008, 11h00   #5
Rage Callao
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localtime and UTC

On Fri, Apr 4, 2008 at 3:20 PM, Luca Sighinolfi <lsighinolfi@gmail.com> wrote:
> > I just installed Lenny Beta 1 and everything installs nicely. However,
> > my system time and hwclock are swapped.

>
> Well, I think this is normal if you have set a time zone!


Hi. Do you mean that the Lenny installer expects me not to set a time
zone if my machine's BIOS clock is set to localtime?

>
> > The output of date is:
> > Fri Apr 4 20:40:29 PHT 2008 (should be 12:40:29)

>
> You can select the right time zone (or none) with "tzselect".
> Then, set the hardware clock using "hwclock --systohc".


I have tried this but the timezone _is_ set correctly as Asia/Manila
however the clock remains skewed. Setting the hardware clock to the
system clock would simply copy the wrong time system time to the
hardware clock.

> Another tool could be usefull to set up the date: rdate
> man hwclock
> man rdate


I was hoping the that clock would be set correctly with necessitating
being online.

> > Thanks for any .

> I hope this


It has ed, thank you very much.

--
Rage Callao
Free Software :: empower :: educate


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 04/04/2008, 11h30   #6
Luca Sighinolfi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localtime and UTC

On Fri, 4 Apr 2008 17:51:34 +0800
"Rage Callao" <rage.callao@gmail.com> wrote:

> On Fri, Apr 4, 2008 at 3:20 PM, Luca Sighinolfi
> <lsighinolfi@gmail.com> wrote:
> > Well, I think this is normal if you have set a time zone!

>
> Hi. Do you mean that the Lenny installer expects me not to set a time
> zone if my machine's BIOS clock is set to localtime?


The answer is yes: Debian expects your BIOS is set on UTC.

Try the option --localtime of hwclock (ref: man hwclock).

About rsync: yes, it needed network access.

bye
--
Luca Sighinolfi


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 04/04/2008, 12h20   #7
Joost Witteveen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localtime and UTC

On 04/04/2008, Luca Sighinolfi <lsighinolfi@gmail.com> wrote:
> On Fri, 4 Apr 2008 17:51:34 +0800
>
> "Rage Callao" <rage.callao@gmail.com> wrote:
>
>
> > On Fri, Apr 4, 2008 at 3:20 PM, Luca Sighinolfi
> > <lsighinolfi@gmail.com> wrote:

>
> > > Well, I think this is normal if you have set a time zone!

> >
> > Hi. Do you mean that the Lenny installer expects me not to set a time
> > zone if my machine's BIOS clock is set to localtime?

>
>
> The answer is yes: Debian expects your BIOS is set on UTC.


But if have a dual boot system with the other system expecting BIOS
set to localtime, Debian should be able to handle this:

http://www.debian.org/doc/manuals/sy...multiboot-with

It may cause problems when rebooting after sommer/winter time changes
though, as Debian has no way of knowing whether the other system
already ajusted the local clock to the new sommer/winter time.

(To set hwclock to UTC/localtime, edit /etc/default/rcS)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 13/04/2008, 09h20   #8
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: localtime and UTC

On Fri, Apr 04, 2008 at 01:10:39PM +0200, Joost Witteveen wrote:

> It may cause problems when rebooting after sommer/winter time changes
> though, as Debian has no way of knowing whether the other system
> already ajusted the local clock to the new sommer/winter time.


Yes, but you can set the other system to not adjust for sommer/winter
time.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIAcHNqJyztHCFm9kRAgBFAKCUyDP+x2NX8WS87vmylO OpwF3BIwCgqlTm
XEWaCDucpcsev5rKL0e1Yno=
=KRtY
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h21.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,19095 seconds with 16 queries