跳至内容
菜单
此问题已终结
2709 查看

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
2627
0
9月 23
2324
2
6月 25
11920
6
10月 23
23078
3
3月 24
10275