summaryrefslogtreecommitdiff
path: root/FS/FS/TemplateItem_Mixin.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-01-27 16:52:39 -0800
committerMark Wells <mark@freeside.biz>2014-01-27 16:52:39 -0800
commit48fc9f425ec3454f4346089318994ae6c1e080a8 (patch)
treee8da5309d456ebc079acba378a0ff97217631293 /FS/FS/TemplateItem_Mixin.pm
parentfbccadc20ceb30d90ef5ab8a2e135834a1aded31 (diff)
localize dates that will appear on invoices, #24850
Diffstat (limited to 'FS/FS/TemplateItem_Mixin.pm')
-rw-r--r--FS/FS/TemplateItem_Mixin.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/FS/FS/TemplateItem_Mixin.pm b/FS/FS/TemplateItem_Mixin.pm
index 7df75d4..6644329 100644
--- a/FS/FS/TemplateItem_Mixin.pm
+++ b/FS/FS/TemplateItem_Mixin.pm
@@ -98,16 +98,19 @@ sub time_period_pretty {
my $time_period;
if ( defined($date_style) && $date_style eq 'month_of' ) {
- $time_period = time2str('The month of %B', $self->sdate);
+ # (now watch, someone's going to make us do Chinese)
+ $time_period = $self->mt('The month of [_1]',
+ $self->time2str_local('The month of %B', $self->sdate)
+ );
} elsif ( defined($date_style) && $date_style eq 'X_month' ) {
my $desc = $conf->config( 'cust_bill-line_item-date_description',
$agentnum
);
$desc .= ' ' unless $desc =~ /\s$/;
- $time_period = $desc. time2str('%B', $self->sdate);
+ $time_period = $desc. $self->time2str_local('%B', $self->sdate);
} else {
- $time_period = time2str($date_format, $self->sdate).
- " - ". time2str($date_format, $self->edate);
+ $time_period = $self->time2str_local($date_format, $self->sdate).
+ " - ". $self->time2str_local($date_format, $self->edate);
}
" ($time_period)";