-1

I am importing a task from Office365 and while importing it, its datetime changes. For example if I set due date to 27-10-2019, when the task is imported, it results in 26-10-2019 with timezone UTC. I don't know why it is reducing one day. Following its original date.enter image description here

Now it is upcoming date. enter image description here

Any suggestion or help?

Community
  • 1
  • 1
Adam Strauss
  • 1,889
  • 2
  • 15
  • 45

1 Answers1

0

It's only because Odoo store the date time in UTC in database and converted it when you show it.

Exemple: Your date come from Office is 27-10-19 00:00:00 -2. When you save this date in odoo DB, if you doesn't convert it in UTC before. Odoo save the date like this 27-10-19 00:00:00 UTC. You lose your TZ.

And when you try to show it with the same TZ in Odoo. You will see 26-10-19 22:00:00

jo541
  • 1,155
  • 6
  • 10