From d9b2f92dd1674c553d17a7474541325b6224d0af Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 1 Feb 2010 14:20:07 +0000 Subject: (iso8601_date_to_locale) lazy load needed module (lazy mode b/c this one is a RAM eater) --- mdkapplet_gui.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdkapplet_gui.pm') 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); } -- cgit v1.2.1