[posixdirectory] added missing code

Thanks @Karlson2k for the heads up.
Sure, but I am doing other things right now. I'll try to make it more
elegant later. Note to self, we have to ensure we store the local time
(with daylight savings) in order to not mess up other code parts like ie
the scraper cache.