It suggests that one should conform to the current circumstances and adapt to the changing times. This can be interpreted as being flexible, compromising, or even surrendering to the prevailing trends.
It's a phrase that emphasizes the importance of being adaptable and responsive to the ever-changing nature of life and history.