[jan] Fix exporting events of a certain time span (piper@hrz.uni-marburg.de, Bug #12074).