fix time macro