summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-02-01 14:20:07 +0000
committerThierry Vignaud <tv@mandriva.org>2010-02-01 14:20:07 +0000
commitd9b2f92dd1674c553d17a7474541325b6224d0af (patch)
tree5d100b21af6b51de4e717b0f02642df2028b5307
parentcb6007f020247f421dc6d8ca819ad38b032a2cdf (diff)
downloadmgaonline-d9b2f92dd1674c553d17a7474541325b6224d0af.tar
mgaonline-d9b2f92dd1674c553d17a7474541325b6224d0af.tar.gz
mgaonline-d9b2f92dd1674c553d17a7474541325b6224d0af.tar.bz2
mgaonline-d9b2f92dd1674c553d17a7474541325b6224d0af.tar.xz
mgaonline-d9b2f92dd1674c553d17a7474541325b6224d0af.zip
(iso8601_date_to_locale) lazy load needed module (lazy mode b/c this
one is a RAM eater)
-rw-r--r--mdkapplet_gui.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet_gui.pm b/mdkapplet_gui.pm
index 2a55b88b..663a1dd7 100644
--- a/mdkapplet_gui.pm
+++ b/mdkapplet_gui.pm
@@ -126,6 +126,7 @@ sub setVar {
sub iso8601_date_to_locale {
my ($date) = @_;
return $date if $date !~ /(\d\d\d\d)-?(\d\d)-?(\d\d)/;
- strftime("%x", 0, 0, 0, $3, $2, $1-1900);
+ require POSIX;
+ POSIX::strftime("%x", 0, 0, 0, $3, $2, $1-1900);
}