python 2.7 - time data does not match format when it can -
i got error particularly strange. code i'll give run, time time, our server (using apache2) hit error:
valueerror: time data '7:00 pm' not match format '%i:%m %p'
strangely, code works, valueerror says otherwise...:
print datetime.strptime('7:00 pm', '%i:%m %p')
to fix issue, time time, reload our apache2 server , up, goes away! can't figure out what's going on. i'm thinking maybe there encoding issue text , log hiding us, i'm programmatically unable force error :)
any ideas?
Comments
Post a Comment