his is the default behaviour from Odoo. When you're in the front-end the logged in user will see the times of all screens in the timezone he is in.In the back-end however all dates are converted to UTC-now times, so that the database uses the same timezone for all date and time handling. For example: If you create a record with the date 25/03/2016 and time 11:40 but you live in a timezone UTC+1 it will convert to 25/03/2016 10:30 in the database. (exact format in the db would be 2016-03-25 10:30:00).
You should handle all actions you perform on UTC times, not on the user his timezone.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/25/16, 5:08 AM|
|Seen: 480 times|
|Last updated: 3/27/16, 2:22 PM|