mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-06-08 16:23:22 -04:00
Handle absolute dates and times before 1970-01-01T00:00:01+0000
refs #33
This commit is contained in:
parent
968e95754c
commit
dc47c074d7
1 changed files with 4 additions and 0 deletions
|
|
@ -162,6 +162,10 @@ class TimeRangePickerForm extends Form
|
|||
|
||||
$this->getUrl()->remove("graph_$part");
|
||||
} else {
|
||||
if ($dateTime->getTimestamp() < 1) {
|
||||
$dateTime = DateTime::createFromFormat('U', '1')->setTimezone($this->getTimeZone());
|
||||
}
|
||||
|
||||
if ($addInterval !== null) {
|
||||
$dateTime->add(new DateInterval($addInterval));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue