fix the timestamp bug for the realtime chart