time_at_wp variable is made extern