projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
print_html_template auch mit scalarrefs als file aufrufbar gemacht
[kivitendo-erp.git]
/
SL
/
Helper
/
DateTime.pm
diff --git
a/SL/Helper/DateTime.pm
b/SL/Helper/DateTime.pm
index
639ed45
..
94c311f
100644
(file)
--- a/
SL/Helper/DateTime.pm
+++ b/
SL/Helper/DateTime.pm
@@
-12,6
+12,11
@@
sub today_local {
return shift->now(time_zone => $::locale->get_local_time_zone)->truncate(to => 'day');
}
return shift->now(time_zone => $::locale->get_local_time_zone)->truncate(to => 'day');
}
+sub to_kivitendo_time {
+ my ($self, %params) = _hashify(1, @_);
+ return $::locale->format_date_object_to_time($self, %params);
+}
+
sub to_kivitendo {
my ($self, %params) = _hashify(1, @_);
return $::locale->format_date_object($self, %params);
sub to_kivitendo {
my ($self, %params) = _hashify(1, @_);
return $::locale->format_date_object($self, %params);
@@
-23,7
+28,7
@@
sub to_lxoffice {
}
sub from_kivitendo {
}
sub from_kivitendo {
- return $::locale->parse_date_to_object(
\%::myconfig,
$_[1]);
+ return $::locale->parse_date_to_object($_[1]);
}
sub from_lxoffice {
}
sub from_lxoffice {