improved monkeypatch for moab time.to_s issue