projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deutlich machen, dass hier auf das der Klasse entsprechende Profil geprüft wird.
[kivitendo-erp.git]
/
SL
/
Locale.pm
diff --git
a/SL/Locale.pm
b/SL/Locale.pm
index
b6065da
..
4fc7a5e
100644
(file)
--- a/
SL/Locale.pm
+++ b/
SL/Locale.pm
@@
-380,6
+380,17
@@
sub parse_date_to_object {
return $yy && $mm && $dd ? DateTime->new(year => $yy, month => $mm, day => $dd) : undef;
}
return $yy && $mm && $dd ? DateTime->new(year => $yy, month => $mm, day => $dd) : undef;
}
+sub format_date_object_to_time {
+ my ($self, $datetime, %params) = @_;
+
+ my $format = $::myconfig{timeformat} || 'hh:mm';
+ $format =~ s/hh/\%H/;
+ $format =~ s/mm/\%M/;
+ $format =~ s/ss/\%S/;
+
+ return $datetime->strftime($format);
+}
+
sub format_date_object {
my ($self, $datetime, %params) = @_;
sub format_date_object {
my ($self, $datetime, %params) = @_;