Update create current unix time

update method to create current unix time to be windows compatible

fix issue #640