HistoryLog: making sure server-side sends eT2 compatible values and use new Et2DateTimeReadonly widget

thought set_value of web-component get not called and nothing is displayed therefore
This commit is contained in:
ralf 2022-05-03 11:25:55 +02:00
parent 1215762f04
commit 7fb436d44c

View File

@ -322,7 +322,7 @@ class History
$query['num_rows']
) as $row)
{
$row['user_ts'] = $GLOBALS['egw']->db->from_timestamp($row['history_timestamp']) + 3600 * $GLOBALS['egw_info']['user']['preferences']['common']['tz_offset'];
$row['user_ts'] = Api\DateTime::server2user($GLOBALS['egw']->db->from_timestamp($row['history_timestamp']), Api\DateTime::ET2);
// Explode multi-part values
foreach(array('history_new_value', 'history_old_value') as $field)
@ -413,4 +413,4 @@ class History
$name == 'De' || // Tracker, InfoLog
($value && (strlen($value) > 200 || strstr($value, "\n") !== FALSE));
}
}
}