diff options
author | Florent Villard <warly@mandriva.com> | 2003-02-28 15:58:38 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-02-28 15:58:38 +0000 |
commit | 8fc65e9058dfca6638e6dd4662b1ad5452f2e659 (patch) | |
tree | 50ab21de57911af6a7df90139769d4edce216677 | |
parent | b53593dd74b1c255d6e3cba0eef5ade14b6d6c2b (diff) | |
download | drakwizard-8fc65e9058dfca6638e6dd4662b1ad5452f2e659.tar drakwizard-8fc65e9058dfca6638e6dd4662b1ad5452f2e659.tar.gz drakwizard-8fc65e9058dfca6638e6dd4662b1ad5452f2e659.tar.bz2 drakwizard-8fc65e9058dfca6638e6dd4662b1ad5452f2e659.tar.xz drakwizard-8fc65e9058dfca6638e6dd4662b1ad5452f2e659.zip |
fix dns config
-rw-r--r-- | dns_wizard/scripts/Dnsconf.pm | 4 | ||||
-rw-r--r-- | po/drakwizard.pot | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/dns_wizard/scripts/Dnsconf.pm b/dns_wizard/scripts/Dnsconf.pm index 2c99cc1a..4b8b66b0 100644 --- a/dns_wizard/scripts/Dnsconf.pm +++ b/dns_wizard/scripts/Dnsconf.pm @@ -68,7 +68,9 @@ sub get_dns2 { 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 bb123e2d..12a6a4f1 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:29+0100\n" +"POT-Creation-Date: 2003-03-01 12:39+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" |