Adding time in legend