ros time is the same as simulation time when the use_sim_time parameter is enabled. If you restart Gazebo while other nodes are kept alive, time will be reset to zero. This will produce old clock messages.