summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-02-28 16:12:14 +0000
committerFlorent Villard <warly@mandriva.com>2003-02-28 16:12:14 +0000
commitb2c33ddc8e1674ea9c58c11827b997e4b9816ddc (patch)
tree26ec422cb82dd804dc6b5566de6a6188c7a2a2d8
parent8fc65e9058dfca6638e6dd4662b1ad5452f2e659 (diff)
downloaddrakwizard-b2c33ddc8e1674ea9c58c11827b997e4b9816ddc.tar
drakwizard-b2c33ddc8e1674ea9c58c11827b997e4b9816ddc.tar.gz
drakwizard-b2c33ddc8e1674ea9c58c11827b997e4b9816ddc.tar.bz2
drakwizard-b2c33ddc8e1674ea9c58c11827b997e4b9816ddc.tar.xz
drakwizard-b2c33ddc8e1674ea9c58c11827b997e4b9816ddc.zip
fix client_dhcp (remove call to date and replace it by gmtime)
-rw-r--r--client_wizard/scripts/Clientconf.pm4
-rw-r--r--po/drakwizard.pot2
2 files changed, 4 insertions, 2 deletions
diff --git a/client_wizard/scripts/Clientconf.pm b/client_wizard/scripts/Clientconf.pm
index 3b480b3f..b148cec8 100644
--- a/client_wizard/scripts/Clientconf.pm
+++ b/client_wizard/scripts/Clientconf.pm
@@ -55,7 +55,9 @@ sub get_root {
sub up_serial {
my ($file) = @_;
- my $serial_nbm = `date +%Y%m%d00` or die "date not found: $!";
+ my (undef, undef, undef, $mday, $mon, $year) = gmtime(time);
+ $year += 1900;
+ my $serial_nbm = sprintf "%4dY%2dm%2d00", $year, $mon, $mday;
output($file, map {
my $line = $_;
if (/^(\s*)(\d*)(\s*;\s*Serial.*)$/) {
diff --git a/po/drakwizard.pot b/po/drakwizard.pot
index 12a6a4f1..b47ec9f6 100644
--- a/po/drakwizard.pot
+++ b/po/drakwizard.pot
@@ -7,7 +7,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2003-03-01 12:39+0100\n"
+"POT-Creation-Date: 2003-03-01 13:06+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"