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

Details

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

    Description

      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);
       		}
       	}
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: