DrupalDriver icon indicating copy to clipboard operation
DrupalDriver copied to clipboard

How to add a DatestampHandler?

Open tanc opened this issue 8 years ago • 2 comments

I was battling with a field handler not working as expected when I realised it was actually looking for a DatestampHandler rather than a DatetimeHandler. I'd like to create a DatestampHandler class but I'm not sure where to put it so it will get autoloaded in my project. Any advice?

tanc avatar Jun 06 '16 10:06 tanc

I've managed to get it working by adding the class to my FeatureContext.php as a separately namespaced class and can confirm that the identical DatetimeHandler code placed in a DatestampHandler class works as expected with date ranges where both value and value2 are stored in the db.

tanc avatar Jun 06 '16 11:06 tanc

I proposed the implementation of the handler for D7 with this commit https://github.com/jhedstrom/DrupalDriver/pull/98/commits/d1a315969e449f4dbcab3e3006720baae42f315c

pheudo avatar Jul 22 '16 14:07 pheudo