Export events to CSV disregards time slider in filter

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 2.4.6, 3.0.0alpha2
    • Component/s: 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);
       		}
       	}
      

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

              Created:
              Updated:
              Resolved: