mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
Calendar - New event in top bar now sets time to start of next hour
This commit is contained in:
parent
054fee2bbe
commit
f328b82972
@ -150,9 +150,11 @@ class calendar_uiforms extends calendar_ui
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$ts = new Api\DateTime();
|
||||||
|
$ts->setUser();
|
||||||
$start = $this->bo->date2ts(array(
|
$start = $this->bo->date2ts(array(
|
||||||
'full' => isset($_GET['date']) && (int) $_GET['date'] ? (int) $_GET['date'] : $this->date,
|
'full' => isset($_GET['date']) && (int) $_GET['date'] ? (int) $_GET['date'] : $this->date,
|
||||||
'hour' => (int) (isset($_GET['hour']) ? $_GET['hour'] : $this->bo->cal_prefs['workdaystarts']),
|
'hour' => (int) (isset($_GET['hour']) ? $_GET['hour'] : ($ts->format('H')+1)),
|
||||||
'minute' => (int) $_GET['minute'],
|
'minute' => (int) $_GET['minute'],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user