Fixes DateTime before method