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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -