Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9965

Export events to CSV disregards time slider in filter

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 2.4.6, 3.0.0alpha2
    • Frontend (F)

      No matter, what time range is set on the slider in filter, events in the resulting CSV file are generated by (time() - $period). Events in generated file differs from events showed on current screen.

      patch:

      --- events.php.bak
      +++ events.php	
      
       	if (hasRequest('stime')) {
       		$stime = getRequest('stime');
       
      -		if ($stime + $period > time()) {
      +		if (strtotime($stime) + $period > time()) {
       			$stime = date(TIMESTAMP_FORMAT, time() - $period);
       		}
       	}
      

            Unassigned Unassigned
            kiwwi Lukas Sabla
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: