port 741d4e9 to master -- fix start and end times for xport
Merge pull request #561 from oetiker/xport-start-end-fix

port 741d4e9 to master -- fix start and end times for xport