Patching datetime