fixed bug on windows8 for the strftime(function)