summaryrefslogtreecommitdiffstats
path: root/mdkapplet-extended-maintenance-helper
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:46 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:46 +0000
commit874b3eb01ebdbc78a8d1e652dd355a941c0283d5 (patch)
tree5fd49ccfa4a2f50302452b3e2646ed68cc89e4c1 /mdkapplet-extended-maintenance-helper
parent5df65d3184cc59d25abd748c3bd2688d2fd512ca (diff)
downloadmgaonline-874b3eb01ebdbc78a8d1e652dd355a941c0283d5.tar
mgaonline-874b3eb01ebdbc78a8d1e652dd355a941c0283d5.tar.gz
mgaonline-874b3eb01ebdbc78a8d1e652dd355a941c0283d5.tar.bz2
mgaonline-874b3eb01ebdbc78a8d1e652dd355a941c0283d5.tar.xz
mgaonline-874b3eb01ebdbc78a8d1e652dd355a941c0283d5.zip
(iso8601_date_to_locale) share it
Diffstat (limited to 'mdkapplet-extended-maintenance-helper')
-rwxr-xr-xmdkapplet-extended-maintenance-helper12
1 files changed, 0 insertions, 12 deletions
diff --git a/mdkapplet-extended-maintenance-helper b/mdkapplet-extended-maintenance-helper
index 736ab935..4181381c 100755
--- a/mdkapplet-extended-maintenance-helper
+++ b/mdkapplet-extended-maintenance-helper
@@ -25,7 +25,6 @@ use lib qw(/usr/lib/libDrakX /usr/lib/libDrakX/drakfirsttime);
use standalone; # for explanations
use common;
use run_program;
-use DateTime;
BEGIN { unshift @::textdomains, 'mdkonline' }
@@ -73,17 +72,6 @@ sub get_extended_maintenance_data() {
@$current_apimdv_distro{qw(extended-maintenance extended-maintenance-end desktop-update-end basic-update-end)};
}
-sub iso8601_date_to_locale {
- my ($date) = @_;
- return $date if $date !~ /(\d\d\d\d)-?(\d\d)-?(\d\d)/;
- my $dt = DateTime->new(year => $1, month => $2, day => $3);
- my $date1 = $dt->strftime("%x");
- # will fail on some locales (eg: br_FR, ...):
- eval { $dt->set_locale($ENV{LC_TIME}) };
- my $date2 = $dt->strftime("%x");
- $date2 || $date1;
-}
-
sub get_extmaint_authentication() {
my $w = ugtk2->new(N("Adding an additional package medium"), width => $width + 20);
my ($password_w, $email_w, $password);