Fix open feature to work cleaner with different date styles. Fix tests