[Phamm] VacationStart and VacationEnd from LDAP
Jónás Zsolt
jonas.zsolt at naxonet.hu
Mon May 25 10:24:21 CEST 2009
hi,
I setup the vacation in phamm then everythink is ok,
but during the vacation if I view my account page (in phamm) the dates
of VacationStart and VacationEnd
don't set the correct date from the LDAP.
The vacation date used to be stored in the following stlye:
YYYY-MM-DD
but now:
YYYYMMDDhhmm
--
jonci
--- xhtml.php_old 2009-05-12 10:44:45.000000000 +0200
+++ xhtml.php 2009-05-12 10:35:10.000000000 +0200
@@ -1047,7 +1047,14 @@
{
$tag = '';
- list($year,$month,$day) = split("-", $current_date);
+ if(preg_match("/-/", $current_date))
+ {
+ list($year,$month,$day) = split("-", $current_date);
+ } else {
+ $year= substr($current_date,0,4);
+ $month = substr($current_date,4,2);
+ $day = substr($current_date,6,2);
+ }
// Days
$tag .= '<select name="'.$name.'[day]">';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rhx.it/pipermail/phamm/attachments/20090525/72ea2676/attachment.htm>
More information about the Phamm
mailing list