Some improvements to midgard_datetime behaviour