mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 20:14:19 +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))
|
||||
{
|
||||
$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',
|
||||
'year='.$date['year'].'&month='.$date['month']
|
||||
. '&day='.$date['day']
|
||||
. '&hour='.substr($dtime,0,strpos($dtime,':'))
|
||||
. '&minute='.substr($dtime,strpos($dtime,':')+1,2).'&owner='.$this->owner).'">';
|
||||
. '&hour='.$new_hour
|
||||
. '&minute='.$new_minute.'&owner='.$this->owner).'">';
|
||||
|
||||
$close_link = '</a>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user