print proper timestamp