Le sam 08/11/2003 à 10:15, Thierry Vignaud a écrit :
> -=-=-=-
> Name        : drakxtools                   Relocations: (not relocateable)
> Version     : 9.3                               Vendor: MandrakeSoft
> Release     : 5mdk                          Build Date: Sat Nov  8 10:59:37 2003

There's seems to have a problem with timedrake/draketime

Indeed, I set my cooker box to sync to my local ntp server. The problem
is that my cooker box always want to have 1 hour less than my server.
All the others 9.1 box are synced correctly, only my cooker box remove
one hour.
I set timezone for Europe/Paris, but nothing, try to say that my system
time was GMT ( and not ), and still nothing.

+ Note 1 :
- on my cooker box, date display this :
[EMAIL PROTECTED] powerpack]$ date
ven nov 14 12:37:15 UTC 2003
[EMAIL PROTECTED] powerpack]$ LC_ALL=C date
Fri Nov 14 12:37:32 UTC 2003

- on my server ( 9.1 ) and others clients ( 9.1 ), date display this :
[EMAIL PROTECTED] root]# date
ven nov 14 13:38:19 CET 2003
[EMAIL PROTECTED] root]# LC_ALL=C date
Fri Nov 14 13:38:25 CET 2003


Notice the CET versus UTC

+ Note 2 :
- in my cooker box, /etc/sysconfig/clock contains this :
[EMAIL PROTECTED] root]# more /etc/sysconfig/clock
UTC=false
ARC=false
ZONE=Europe/Paris

- in my 9.1 box, I have :
[EMAIL PROTECTED] root]# more /etc/sysconfig/clock
UTC=true
ZONE=Europe/Paris
ARC=false


+ Note 3 :
a diff -u between /usr/lib/libDrakX/timezone of 9.1 and cooker give me
this ( I remove specific ntp lines ) :

[EMAIL PROTECTED] powerpack]$ diff -u /usr/lib/libDrakX/timezone.pm
~admin/timezone.pm
--- /usr/lib/libDrakX/timezone.pm       2003-11-08 10:06:24.000000000
+0000
+++ /home/techmodis/admin/timezone.pm   2003-11-14 12:39:44.000000000
+0000
@@ -1,4 +1,4 @@
-package timezone; # $Id: timezone.pm,v 1.51 2003/10/20 17:12:11
tvignaud Exp $
+package timezone; # $Id: timezone.pm,v 1.44 2003/02/23 20:26:28 prigaux
Exp $
  
  
  
@@ -11,24 +11,23 @@
     my ($prefix) = @_;
     $::testing and $prefix = '';
     open(my $F, "cd $prefix/usr/share/zoneinfo && find [A-Z]* -type f
|");
-    my @l = difference2([ chomp_(<$F>) ], [ 'ROC', 'PRC' ]);
+    my @l = chomp_(<$F>);
     close $F or die "cannot list the available zoneinfos";
     sort @l;
 }
  
-sub read() {
+sub read {
     my %t = getVarsFromSh("$::prefix/etc/sysconfig/clock") or return
{};
     { timezone => $t{ZONE}, UTC => text2bool($t{UTC}) };
 }
  
 sub ntp_server {
-    my $setting = @_ > 1;
     my ($prefix, $server) = @_;
  
     my $f = "$prefix/etc/ntp.conf";
     -e $f or return;
  
-    if ($setting) {
+    if (@_ > 1) {
        my $added = 0;
        substInFile {
            if (/^#?\s*server\s+(\S*)/ && $1 ne '127.127.1.0') {
@@ -127,129 +126,43 @@
 }
 sub bestTimezone { $c2t{fuzzyChoice($_[0])} || 'GMT' }


 



Reply via email to