Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
175 Ansichten

When creating or editing a time-off with custom hours it shows the message "The employee has a different timezone than yours! Here dates and times are displayed in the employee's timezone (UTC).". I create a time-off for myself. I changed my user and my employee in order to have the same time zone. Why keeps showing the message?

Avatar
Verwerfen
Autor Beste Antwort

Thanks STAFFINSIDE and Cybrosys. I tried also closing session and cleaning cache but the message is still there. As I'm using v18, I think the case is a bug, as mentioned by Cybrosys.

Avatar
Verwerfen
Beste Antwort

Hi,


In Odoo’s Time Off app, the warning about different time zones appears when the system sees a mismatch between the employee’s timezone and the current user’s timezone. Even if you update both, Odoo checks them separately: the user’s timezone comes from Preferences, while the employee’s timezone is stored on the Employee record. If one is empty or still set to UTC, the system triggers the message.


This happens because Odoo compares the employee’s tz field directly with the user’s tz. If they don’t match exactly, or if the employee’s field is blank and defaults to UTC, you’ll still see the message. Clearing your cache and re-logging in helps reload settings, but if the warning persists even after both are set correctly, it may be due to a known bug in newer versions. In that case, the warning is harmless, though it can be patched by adjusting the logic in the hr_holidays module.



Hope it helps

Avatar
Verwerfen
Beste Antwort

Hi Leandro,

That message appears when Odoo detects a mismatch between the User timezone and the Employee’s related timezone. Even if you set both to the same value, please check the following:

  1. User vs Employee link
    • Go to Employees > Your Employee Record > Work Information and make sure the “Related User” field is correctly linked to your user.
  2. Timezone field
    • The timezone must be set on the user record: Settings > Users & Companies > Users > Preferences (Timezone).
    • The employee record does not hold a separate timezone; it inherits from the related user.
  3. Refresh session
    • After changing the timezone, log out and back in (or clear your cache). Sometimes the old timezone context is still stored in your session.

If everything is aligned, the warning should disappear.

I hope this works for you!

Avatar
Verwerfen

STAFFINSIDE just posts AI generated answers. Useless in a forum.

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Aug. 25
464
1
Juli 25
745
1
Juli 25
1060
2
Mai 25
1671
1
Juli 25
1377