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

Hi All,

I just encountered a problem where the datetime is converted into system time zone or the browser timezone . I need odoo to take the timezone from the user's preference and convert the date according to that . 

Thank you

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Sergio Marquina,

Can you check this

Thanks.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If you check the help section of res.partner tz field, you will see that:

  • tz from user profile will be used only in reports and data import/export
  • everywhere else it's used the web client timezone (browser)



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
  1. Make sure that the user's timezone is set correctly in their user preferences. This can be done by going to the user's form view and checking that the "Timezone" field is set to the correct value.

  2. Check that the timezone setting in the server configuration is correct. This can be done by looking in the Odoo configuration file (usually located at /etc/odoo/odoo.conf) and checking that the "--timezone" option is set to the correct value.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Time & Date Issue Đã xử lý
6
thg 9 19
11277
2
thg 3 16
7891
0
thg 3 15
8147
1
thg 1 24
12710
4
thg 3 23
14707