跳至內容
選單
此問題已被標幟
2389 瀏覽次數

I have this code in a module downloaded from app store,

selected_day = datetime.datetime.strptime('2016-01-19 14:00:00', '%Y-%m-%d %H:%M:%S').strftime('%A')

when I execute the code from odoo, selected_day = 'martes', but if I execute the code from a simple python script selected_day = 'Tuesday', does this have anything to do with selected template language or any configuration for translated terms in odoo? 

thanks for all.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
9月 23
1775
0
9月 23
1493
2
6月 25
10888
6
10月 23
21685
3
3月 24
9177