Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2565 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
2293
0
thg 9 23
2005
2
thg 6 25
11556
6
thg 10 23
22568
3
thg 3 24
9888