The time difference problem solving odoo

The time difference problem solving odoo

Original link: http://www.cnblogs.com/Michaelwolf/p/6528701.html

odoo at the time of treatment to the database based on Greenwich Mean Time, when coupled with the difference in the display area, especially server deployment on Windows, such as time or date value is incorrect, it will difference of about 8 hours , how to accurately adjust the time, here is my own solution:

1. We found odoo of create_date and write_date value is always right, then we look at its value by:

Active in several ways to compare values:

 

 

 Visible only Date11 values, whether server in linux below or in the windows, all is right

 This is how to do it?

FIG as a method to increase the following fields:

 

Different platforms time processing, since I no MAC default environment so DateTime.Now () returns a value,

This scheme can test on the server, the adjustment value timedelta seconds and the hours, and would be quite true.

 

2. The date also do the same solution:

 

 

This compares favorably with the application:

 

 

 The value way Date16 / date17 / date18 both can drop.

Other examples of values ​​using this two methods:

odoo at the time of treatment to the database based on Greenwich Mean Time, when coupled with the difference in the display area, especially server deployment on Windows, such as time or date value is incorrect, it will difference of about 8 hours , how to accurately adjust the time, here is my own solution:

1. We found odoo of create_date and write_date value is always right, then we look at its value by:

Active in several ways to compare values:

 

 

 Visible only Date11 values, whether server in linux below or in the windows, all is right

 This is how to do it?

FIG as a method to increase the following fields:

 

Different platforms time processing, since I no MAC default environment so DateTime.Now () returns a value,

This scheme can test on the server, the adjustment value timedelta seconds and the hours, and would be quite true.

 

2. The date also do the same solution:

 

 

This compares favorably with the application:

 

 

 The value way Date16 / date17 / date18 both can drop.

Other examples of values ​​using this two methods:

Guess you like

Origin www.cnblogs.com/xingkongzhizhu/p/11798358.html