'python script works fine on one linux box but throw ValueError time data does not match format on another

The error dumped is '5-June-2021' does not match format '%d-%B-%Y'.

My friend was using a python3.8 and got this error.

The python version on my linux box is 3.6.9. To debug this error, I tried latest 3.8 and 3.10 under venv, all worked. What could be the reason?Error Screenshot



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source