fix date issue when generating folders