Specify timezone, candle start versus end labels, and whether each input requires a completed bar. All clock examples here use Asia/Shanghai (UTC+8). Use half-open intervals: a 09:00–10:00 bar contains observations from 09:00 up to, but not including,10:00. Different data labels must be normalized to that convention before joining them.
Four 15-minute intervals make 60 minutes. That arithmetic does not prove four downloaded candles are complete, consecutive or correctly labeled. Check the underlying timestamps with backtest data quality before resampling. A wrong join can produce plausible charts while contaminating every entry decision.