Learning Time-Aware Causal Representation for Model Generalization in Evolving Domains