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

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 2.4.6, 3.0.0alpha2
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Labels:

      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

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

                Dates

                Created:
                Updated:
                Resolved: