projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Im Filtered Helper den callback richtig zusammenbauen.
[kivitendo-erp.git]
/
SL
/
Helper
/
DateTime.pm
diff --git
a/SL/Helper/DateTime.pm
b/SL/Helper/DateTime.pm
index
1d0b38a
..
639ed45
100644
(file)
--- a/
SL/Helper/DateTime.pm
+++ b/
SL/Helper/DateTime.pm
@@
-2,6
+2,8
@@
package DateTime;
use strict;
use strict;
+use SL::Util qw(_hashify);
+
sub now_local {
return shift->now(time_zone => $::locale->get_local_time_zone);
}
sub now_local {
return shift->now(time_zone => $::locale->get_local_time_zone);
}
@@
-11,8
+13,7
@@
sub today_local {
}
sub to_kivitendo {
}
sub to_kivitendo {
- my $self = shift;
- my %params = (scalar(@_) == 1) && (ref($_[0]) eq 'HASH') ? %{ $_[0] } : @_;
+ my ($self, %params) = _hashify(1, @_);
return $::locale->format_date_object($self, %params);
}
return $::locale->format_date_object($self, %params);
}
@@
-27,7
+28,7
@@
sub from_kivitendo {
sub from_lxoffice {
# Legacy name.
sub from_lxoffice {
# Legacy name.
- go
from
&from_kivitendo;
+ go
to
&from_kivitendo;
}
1;
}
1;