Towards Invariant Time Series Forecasting in Smart Cities