mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 04:24:57 +01:00
Fix for bug #415173 - improper time
This commit is contained in:
parent
2ef69a2a53
commit
3a593f09c8
@ -1413,11 +1413,19 @@ class calendar extends calendar_
|
|||||||
|
|
||||||
if(($this->printer_friendly == False) && ($this->check_perms(PHPGW_ACL_EDIT) == True))
|
if(($this->printer_friendly == False) && ($this->check_perms(PHPGW_ACL_EDIT) == True))
|
||||||
{
|
{
|
||||||
|
$new_hour = intval(substr($dtime,0,strpos($dtime,':')));
|
||||||
|
if ($phpgw_info['user']['preferences']['common']['timeformat'] == '12')
|
||||||
|
{
|
||||||
|
$new_hour += 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
$new_minute = substr($dtime,strpos($dtime,':')+1,2);
|
||||||
|
|
||||||
$open_link .= '<a href="'.$phpgw->link('/calendar/edit_entry.php',
|
$open_link .= '<a href="'.$phpgw->link('/calendar/edit_entry.php',
|
||||||
'year='.$date['year'].'&month='.$date['month']
|
'year='.$date['year'].'&month='.$date['month']
|
||||||
. '&day='.$date['day']
|
. '&day='.$date['day']
|
||||||
. '&hour='.substr($dtime,0,strpos($dtime,':'))
|
. '&hour='.$new_hour
|
||||||
. '&minute='.substr($dtime,strpos($dtime,':')+1,2).'&owner='.$this->owner).'">';
|
. '&minute='.$new_minute.'&owner='.$this->owner).'">';
|
||||||
|
|
||||||
$close_link = '</a>';
|
$close_link = '</a>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user