datetime duration fixes, improvements for tida