mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
- Set dates back to original timezone when done writing
- Use usertime for importing email, same as displayed in felamimail
This commit is contained in:
parent
1c600b919d
commit
d90a2c1ade
@ -762,7 +762,7 @@ class infolog_bo
|
|||||||
$status = 'done';
|
$status = 'done';
|
||||||
if (isset($values['info_type'])) {
|
if (isset($values['info_type'])) {
|
||||||
if (isset($this->status[$values['info_type']]['done'])) {
|
if (isset($this->status[$values['info_type']]['done'])) {
|
||||||
$status = 'done';
|
$status = 'done';
|
||||||
} elseif (isset($this->status[$values['info_type']]['billed'])) {
|
} elseif (isset($this->status[$values['info_type']]['billed'])) {
|
||||||
$status = 'billed';
|
$status = 'billed';
|
||||||
} elseif (isset($this->status[$values['info_type']]['cancelled'])) {
|
} elseif (isset($this->status[$values['info_type']]['cancelled'])) {
|
||||||
@ -943,6 +943,11 @@ class infolog_bo
|
|||||||
|
|
||||||
if ($info_from_set) $values['info_from'] = '';
|
if ($info_from_set) $values['info_from'] = '';
|
||||||
|
|
||||||
|
// Change new values back to user time before sending them back
|
||||||
|
if($user2server)
|
||||||
|
{
|
||||||
|
$this->time2time($values);
|
||||||
|
}
|
||||||
// merge changes (keeping extra values from the UI)
|
// merge changes (keeping extra values from the UI)
|
||||||
$values_in = array_merge($values_in,$values);
|
$values_in = array_merge($values_in,$values);
|
||||||
}
|
}
|
||||||
@ -1066,7 +1071,7 @@ class infolog_bo
|
|||||||
'info_addr' => implode(', ',$email),
|
'info_addr' => implode(', ',$email),
|
||||||
'info_subject' => $_subject,
|
'info_subject' => $_subject,
|
||||||
'info_des' => $_message,
|
'info_des' => $_message,
|
||||||
'info_startdate' => $_date,
|
'info_startdate' => egw_time::server2user($_date),
|
||||||
'info_status' => $status,
|
'info_status' => $status,
|
||||||
'info_priority' => 1,
|
'info_priority' => 1,
|
||||||
'info_percent' => $status == 'done' ? 100 : 0,
|
'info_percent' => $status == 'done' ? 100 : 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user