mirror of https://github.com/MISP/MISP
chg: [internal] Don't try to convert shorthand time notations to timestamp if the data is already in timestamp format
parent
ce6890081a
commit
2b3422d4e2
|
@ -3450,6 +3450,7 @@ class Event extends AppModel {
|
|||
}
|
||||
|
||||
public function resolveTimeDelta($delta) {
|
||||
if (is_int($delta)) return $delta;
|
||||
$multiplierArray = array('d' => 86400, 'h' => 3600, 'm' => 60);
|
||||
$multiplier = $multiplierArray['d'];
|
||||
$lastChar = strtolower(substr($delta, -1));
|
||||
|
|
Loading…
Reference in New Issue