add support for php datetime objects to ActiveForm