Datetime translation errror

Hi i have function
raw_time = datetime.strptime(req_time, '%a %b %d %H:%M:%S %Z %Y')

when i change language from english to french in client and excute i am getting this error

can any one help me out in this

You have a hard-coded format for converting an Ignition datetime (really a java.util.Date object) into a python datetime. Of course it will break if you change the locale.

Learn to use Ignition’s date/time manipulation functions instead of jython’s datetime module. (I’ve never had a good experience with jython’s datetime implementation.)

Or, for advanced operations, just use java’s Date, Calendar, TimeZone, and Instant classes directly.