fixed: wrong date in logging files generated for days in past or future