Implemment current-time middlware