定语从句Yesterday when I met Mary

问题描述:

定语从句Yesterday when I met Mary
It's yesterday _when__ I met Mary
为什么此处用when而不用which?
不是说定语从句后要加介词时才用关系副词吗?
例如:This is the factory __where___he worked last year
因为是work in the factory所以用where
那I met Mary yesterday不用加介词为什么也要用when?

yesterday 在从句中是状语,不管用不用介词都是状语,用when就没错