Added daytime-only switch for location history