diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-06 12:41:54 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-06 12:41:54 +0200 |
commit | c1d01f36129ccfa0f76f4681058b10a348a6e9a2 (patch) | |
tree | 866d5a85bae4b22618eafa666c3c24dd050eafbd /Bugzilla/Util.pm | |
parent | c3347fb736a9f08c8285dc31881ed6301412e9ac (diff) | |
download | bugs-c1d01f36129ccfa0f76f4681058b10a348a6e9a2.tar bugs-c1d01f36129ccfa0f76f4681058b10a348a6e9a2.tar.gz bugs-c1d01f36129ccfa0f76f4681058b10a348a6e9a2.tar.bz2 bugs-c1d01f36129ccfa0f76f4681058b10a348a6e9a2.tar.xz bugs-c1d01f36129ccfa0f76f4681058b10a348a6e9a2.zip |
Bug 466968: Remove hardcoded strings from BugMail.pm, and refactor it so that bugmails are 100% localizable
r/a=mkanat
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r-- | Bugzilla/Util.pm | 20 |
1 files changed, 1 insertions, 19 deletions
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<Bugzilla::Template>. -=item C<format_time_decimal($time)> - -Returns a number with 2 digit precision, unless the last digit is a 0. Then it -returns only 1 digit precision. - =item C<datetime_from($time, $timezone)> Returns a DateTime object given a date string. If the string is not in some |