Commit 004f7ae
committed
[FIX] google_calendar: Wrong timezone on cron synchronization
Issue
- Install "Calendar" app
- Activate & Set google calendar credidentials
- Go to user preference
- Edit and set timezone "Europe/Brussels" e.g.
- Go to calendar app
- Add an event and sync with google
- Go to Settings->Technical->Automation->Scheduled Actions
- Edit Google Calendar: synchronization
- Set "Next Execution Date" ASAP
The timezone on Google Calendar synchronised event is:
- Before cron: GMT +2
- After cron: UTC
Cause
If no timezone is provided in context, it will by default
use 'UTC' timezone.
Solution
Like display time on odoo, if no timezone is provided in context,
it will check the env.user timezone instead.
opw-2228296
closes odoo#51849
X-original-commit: 41372db
Signed-off-by: Nicolas Martinelli (nim) <[email protected]>1 parent 7271d83 commit 004f7ae
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
0 commit comments