fix time issue so it will also work on production