Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
290 Представления

How can we set specific timezone for  website rental app. Not UTC 

Аватар
Отменить
Лучший ответ

Website --> Configuration --> Settings

Аватар
Отменить
Лучший ответ

To set a specific timezone for the Odoo website rental app, follow these steps:



  Ensure your server's timezone is set correctly to your desired timezone.

  Navigate to Settings > General Settings in Odoo and set the timezone for your company.

  Check the user's timezone settings under Preferences to ensure they align with your requirements.


If you'd like to explore this further for your use case, you're welcome to connect with us at Pragmatic Techsoft.

Аватар
Отменить
Лучший ответ

Hi Umar,

By default the Rental app on the website uses the company’s timezone (or UTC if nothing is set). To change it you can:

  1. Go to Settings → General Settings → Localization → Timezone and make sure your company has the correct timezone set.
  2. In the Rental app, dates shown on the website follow that company timezone. If you want a different one only for the website, you’d need a small customization: override the QWeb template or controller to convert the UTC values into your desired timezone using fields.Datetime.context_timestamp().

There’s no per-website timezone setting out-of-the-box, it’s either company-wide or requires a little custom code.

Hope this helps!

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
сент. 25
65
0
сент. 25
58
2
сент. 25
108
0
сент. 25
212
3
сент. 25
390