gallery: use server side time for tree_events.to limit