From c1d01f36129ccfa0f76f4681058b10a348a6e9a2 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Fri, 6 Aug 2010 12:41:54 +0200 Subject: Bug 466968: Remove hardcoded strings from BugMail.pm, and refactor it so that bugmails are 100% localizable r/a=mkanat --- Bugzilla/Util.pm | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'Bugzilla/Util.pm') diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index f5ab51d2b..6f5686a3b 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -39,8 +39,7 @@ use base qw(Exporter); do_ssl_redirect_if_required use_attachbase diff_arrays on_main_db trim wrap_hard wrap_comment find_wrap_point - format_time format_time_decimal validate_date - validate_time datetime_from + format_time validate_date validate_time datetime_from file_mod_time is_7bit_clean bz_crypt generate_random_password validate_email_syntax clean_text @@ -466,18 +465,6 @@ sub datetime_from { return $dt; } -sub format_time_decimal { - my ($time) = (@_); - - my $newtime = sprintf("%.2f", $time); - - if ($newtime =~ /0\Z/) { - $newtime = sprintf("%.1f", $time); - } - - return $newtime; -} - sub file_mod_time { my ($filename) = (@_); my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, @@ -935,11 +922,6 @@ is used, as defined in his preferences. This routine is mainly called from templates to filter dates, see "FILTER time" in L. -=item C - -Returns a number with 2 digit precision, unless the last digit is a 0. Then it -returns only 1 digit precision. - =item C Returns a DateTime object given a date string. If the string is not in some -- cgit v1.2.3-24-g4f1b