Fix datetime casting with different timezone
Fix tests