fixed wierd dcd error on windows. strftime was causing segfault. replaced code with something equivalent.