use correct ts for datetime export